Created
September 25, 2019 21:50
-
-
Save angeliquejw/b7f0efd4093b0f99a08e22127c09044f to your computer and use it in GitHub Desktop.
Screenreader utility class
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 hide an element while allowing it to still be utlized by a screenreader | |
.u-sr-only { | |
border: 0; | |
clip: rect(0 0 0 0); | |
overflow: hidden; | |
margin: -1px; | |
padding: 0; | |
position: absolute !important; | |
height: 1px; | |
width: 1px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment