Created
March 14, 2019 20:33
-
-
Save jimmieego/c587093059c0981e35c24c55da50d18c to your computer and use it in GitHub Desktop.
Screen reader only helper class for hiding content from sighted users
This file contains hidden or 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
| .screen-readers-only { | |
| border: 0; | |
| clip: rect(1px, 1px, 1px, 1px); | |
| clip-path: inset(50%); | |
| height: 1px; | |
| margin: -1px; | |
| overflow: hidden; | |
| padding: 0; | |
| position: absolute !important; | |
| width: 1px; | |
| word-wrap: normal !important; | |
| } |
Author
jimmieego
commented
Dec 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment