Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Interactive Rating Component

bem, accessibility
Zosima•220
@SantiagoPonce
A solution to the Interactive rating component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What challenges did you encounter, and how did you overcome them?

Hello, here I leave my resolution of the exercise and a couple of questions that I still cannot find an answer to.

Multistate page

First of all, I wanted to know what is the best way according to you when it comes to a page that has multiple states (2 in this case). My solution was to create a rating-component div and then create 2 more divs inside for each state and use a hidden class that sets the display:none attribute according to the state of the page you want to see. However this caused me to have to duplicate several styles. Perhaps a better way would have been to make a container with fixed dimensions and then draw the various states with absolute positioning

On the other hand, I wanted to know what you think about having made the score selection this way. By not using buttons or selection, I think it could undermine accessibility, but I can't find a way to use a form.

Thank you :)

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Zosima's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License