Created
June 5, 2017 10:51
-
-
Save whatjackhasmade/496216f1831fc28079dabf8a323e3f51 to your computer and use it in GitHub Desktop.
Hidden + Accessible Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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