Last active
May 11, 2020 11:03
-
-
Save defmech/bf30092f70b49d6fb1c3e14fa52f8122 to your computer and use it in GitHub Desktop.
Using a CSS pseudo selector to visualise what an element's aria-label is set to.
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
&:after { | |
width: 100%; | |
color: magenta; | |
font-weight: bold; | |
content: attr(aria-label); | |
position: absolute; | |
left: 0; | |
top: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment