Last active
April 7, 2019 00:17
Helper classes for building inclusive, accessible interfaces/experiences
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
/* from | |
https://inclusive-components.design/tooltips-toggletips/ | |
"The visually-hidden class corresponds to some special CSS we've discussed before on Inclusive Components. | |
It hides the <span> visually without stopping it from being read out in screen readers." | |
*/ | |
.visually-hidden { | |
clip-path: inset(100%); | |
clip: rect(1px, 1px, 1px, 1px); | |
height: 1px; | |
overflow: hidden; | |
position: absolute; | |
white-space: nowrap; | |
width: 1px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment