Skip to content

Instantly share code, notes, and snippets.

@whatjackhasmade
Created June 5, 2017 10:51
Show Gist options
  • Save whatjackhasmade/496216f1831fc28079dabf8a323e3f51 to your computer and use it in GitHub Desktop.
Save whatjackhasmade/496216f1831fc28079dabf8a323e3f51 to your computer and use it in GitHub Desktop.
Hidden + Accessible Text
.visually-hidden { /*https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html*/
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
padding:0 !important;
border:0 !important;
height: 1px !important;
width: 1px !important;
overflow: hidden;
}
body:hover .visually-hidden a, body:hover .visually-hidden input, body:hover .visually-hidden button { display: none !important; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment