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

#react#sass/scss
P
NataJenkinsā€¢ 230

@NataJenkins

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@VCarames

Posted

Hey there! šŸ‘‹ Here are some suggestions to help improve your code:

  • create-react-app is deprecated, so it is no longer supported. Instead you want to use a modern framework, such as Vite, to built your app with React.

More Info:

Start a New React Project

  • The icons/illustration in this challenge are purely decorative so there alt tag should be left blank, so that screenreader will ignore them.
  • Unfortunately the HTML for the rating part needs to be rewritten as it was done incorrectly.

To ensure the ratings are fully accessible to all users and are built with the proper elements, the entire rating part needs to be built using a form element.

  1. Wrap all elements within a fieldset, which will contain a visually hidden legend using CSS.
  2. Within the fieldset, include five (5) input radio elements, each associated with a corresponding label to enhance the accessibility of the "ratings."
  3. Lastly, include a button to allow users to submit their selection.

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding! šŸ‘¾

Marked as helpful

1

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