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

Rating component | vanilla CSS/JS, ARIA accessibility

P
Jonatan Samuelsson•540
@jonatan-samuelsson
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?

Though it wasn't part of the challenge as such, since the challenge appeared in the accessibilty learning path, I decided to read up a little on accessibility and to implement some of what I found. This led me to pay some attention to both the cloe-button on the thank you section, which got an ARIA-label to let screen readers know what it's for, and the rating radio buttons, for which I ended up slightly adjusting my design solution to accomodate a better focus-state highlight.

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

Not that challenging overall, but I am keen to learn more accessibility techniques now, as I feel I am starting to see some of the little tweaks that go very far. Also, on a side note, I realized I need to brush up on my formData management skills in JS.

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 Jonatan Samuelsson'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

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