Skip to content

Commit

Permalink
Fix extended footer on certain pages
Browse files Browse the repository at this point in the history
Some pages (e.g. https://www.gov.uk/government/publications/armed-forces-corporate-covenant-signed-pledges) have a long revision history. This, by default, has a class of visuallyhidden that hides the extended content off screen using position:absolute and left:-9999em. While this is hidden, the viewport will extend itself to include absolutely positioned elements, even if they’re positioned horizontally off screen.

This patch clips off screen elements so that they don’t take up any vertical space. It doesn’t affect VoiceOver’s ability to read the extended content.
  • Loading branch information
Robin Whittleton committed Sep 16, 2015
1 parent 1ab0982 commit 8b9d871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/assets/stylesheets/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
.visuallyhidden {
position: absolute;
left: -9999em;
height: 0;
overflow: hidden;

/*
* Extends the .visuallyhidden class to allow the element to be
Expand Down

0 comments on commit 8b9d871

Please sign in to comment.