Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Created accessible rating page

14avi14•400
@14avi14
A solution to the Interactive rating component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am glad that I was able to keep my JS code short and concise, though this was a simpler project so that was probably the main reason. I also used semantic HTML, and I used fewer random <div> containers for random positioning that I used to which also cleared the clutter in my HTML.

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

Not many challenges for this one, just one thing was that I didn't realize that labels were inline elements, which I realized by using dev tools in a new way that I did not know I could before: if a certain style is not actually being applied, inspect that element and go to the "styles" tab, which will show the styles being applied; if something is not being applied, it will be shaded slightly grey and there will be and "i" icon that gives information about why that style is not being applied.

What specific areas of your project would you like help with?

For my radio buttons, I made them display: none and used the labels. But, I could not tab through them so I used tabindex. This allowed me to tab through the rating buttons, but I couldn't just click "enter" or "space" like a normal button. So, my question is how is this done?

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 14avi14'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