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

P
CHBNDJ 390

@CHBNDJ

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


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

none

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

none

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

none

Community feedback

P

@barka-dev

Posted

Great job on completing the challenge! There are just a few suggestions to help improve the implementation:

Semantic Elements: Consider using more semantic elements rather than relying on <div> for structuring your component. For example, instead of using <div> to create the rating options, you could use <input type='radio'/> to enhance accessibility and clarity.

Alignment: To improve the alignment of your component, you might want to use Flexbox to center the elements on the screen. A structure like this would work well:

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

This will ensure the component is centered both horizontally and vertically.

Active State Styling: I noticed that the active style is not being applied to the selected option until the mouse moves out. It would be great to have the active style update immediately upon selection to improve user interaction.

Keep the great work, and happy coding :)

Marked as helpful

0

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