Design comparison
SolutionDesign
Community feedback
- @kaseyveePosted over 1 year ago
Hello! I notice you have accessibility tagged but unfortunately, I cannot access the dice button by keyboard :( This is where semantic HTML becomes important. It's best to just use the native button element and style to your liking so that they maintain their accessibility features.
You can also simply add the attributes
role="button"
andtabindex=0
so that it is keyboard accessible and read by screen readers that it is indeed a button.Hope this helps!
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord