DEV Community

Discussion on: You can create these elements without JavaScript

 
cattjames profile image
James Catt

Focus then arrow keys. Trouble is that there's no visible focus indicator. I seem to remember trying an implementation like this a while back but it didn't quite work right if JAWS was running.

Thread Thread
 
konrud profile image
Konstantin Rouda

I've tried to do something similar to the star rating, with the keyboard navigation and accessibility in mind.
It's not ideal but it tries to take into account accessibility and keyboard navigation as far as possible.

Code Example