Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Rating component build with React

@nico-or

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


My focus was on learning React so I neglected the accessibility of the rating selector. To get it working I made it from divs and event listeners.

I think radio buttons are the proper native form element for this purpose, but I have never styled one to look anything like this challenge.

  • Any suggestions of a better implementation from an a11y perspective?
  • Is there any aria tags that could be applied for this component case?

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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