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

Interactive Rating Component | Remix, TypeScript and Sass/Scss

#remix#sass/scss#typescript#accessibility

@Sloth247

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


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.

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