kasey• 320
@kaseyvee
Posted
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"
and tabindex=0
so that it is keyboard accessible and read by screen readers that it is indeed a button.
Hope this helps!
Marked as helpful
1