Interactive rating component main (SASS, VanillaJS)

Solution retrospective
Hi! RE: the number rating, is this the best practice (for accessibility) with the number buttons? Do you have better alternatives?
Thank you! Also any kind of feedback is welcome
Please log in to post a comment
Log in with GitHubCommunity feedback
- @mbank14
Hey, what you've done so far is great! I have a suggestion, though: maybe you could use radio buttons for selecting the rating number. I think it would be easier because we’d only need to focus on the active element. Right now, when I click on number 3, number 2 turns white, and when I press number 4, number 3 doesn't go back to its original color. You’d need to add some more conditions in the code for that
Marked as helpful
Join 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