Created
October 25, 2019 08:56
-
-
Save alastc/20cb11bc11e84f36b725dd1e29c614bb to your computer and use it in GitHub Desktop.
Testing aria-labels with CSS
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
/* Useful for testing visible labels, highlights elements with aria-label(ledby) and puts in the content */ | |
*[aria-label], *[aria-labelledby] {outline: 3px red solid !important;} | |
*[aria-label]::after, *[aria-labelledby]::after { | |
content: attr(aria-label); | |
color: red; | |
font-size: 1rem; | |
background: white; | |
position: absolute; | |
} | |
*[aria-labelledby]::after { | |
content: attr(aria-labelledby); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment