Last active
May 7, 2021 07:49
-
-
Save Lelith/28a4f43298ed0607d6e84b017c54b1e7 to your computer and use it in GitHub Desktop.
acccessible divs
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
// by adding appropriate aria-role the element becomes accessible. | |
<div tabindex="0" role="button" onClick={action('clicked')}>accessible clickable div</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment