Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

Interactive Rating Component | Remix, TypeScript and Sass/Scss

remix, sass/scss, typescript, accessibility
Yuko Horita•645
@Sloth247
A solution to the Interactive rating component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


This is my first time using TypeScript in a project. There weren't much types but I enjoyed using <Form> component package from Remix.

I added the following feature:

  • show an error message when no rating has been selected.

I have a few questions;

  • I used focus-within on .main__input-container and change label background color when it is focused. However, this made a selected rating button remain orange when hover over other rating.
  • I am not sure my use of aria-live on error message is correct.

Any comments & feedbacks are welcome.

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 Yuko Horita'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