It would be more accessible to build the stars as a series of radio buttons. You would automatically gain keyboard functionality and it would present to screen readers as a more suitable control type.
Head of AI Tools & Enablement, Block. Certified Java Programmer and Java Champion. International Keynote Speaker. GitHub Star. Master Inventor w/ 27 patents.
It would be more accessible to build the stars as a series of radio buttons. You would automatically gain keyboard functionality and it would present to screen readers as a more suitable control type.
I did something like this a while back github.com/AshleyJSheridan/accessi...
thanks for this tip!