Skip to content

Commit

Permalink
Update hiding code to match WebAIM
Browse files Browse the repository at this point in the history
@accessiblewebuk pointed out that WebAIM have a recommended set of CSS for hiding offscreen: http://webaim.org/techniques/css/invisiblecontent/#absolutepositioning . This updates the class to match their height:1px / width:1px / top:auto recommendation.
  • Loading branch information
Robin Whittleton committed May 3, 2016
1 parent f5d5198 commit 012a7ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/assets/stylesheets/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
.visuallyhidden {
position: absolute;
left: -9999em;
height: 0;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;

/*
Expand Down

0 comments on commit 012a7ff

Please sign in to comment.