@VCarames
Posted
Hey there! 👋 Here are some suggestions to help improve your code:
- Change
width
tomax-width
in your component’s container to make it responsive. You will also want to delete theheight
as it is unnecessary.
- The “icons/images” in this component serve no other purpose then to be decorative; They add no value. There
Alt Tag
should be left blank and have anaria-hidden=“true”
to hide them from assistive technology.
More Info:📚
https://www.w3.org/WAI/tutorials/images/
- Wrap your ratings and submit button in a
form
element you will also wrap the rating in afieldset
.
More Info:📚
MDN <fieldset>: The Field Set element
- Currently, users can submit without selecting a rating. To fix this, you can do one of the following:
- Make the “5” rating the default rating.
- Create an error message, telling users they need make a section.
- Disable the button until a selection is made.
- The "Thank You" screen is incorrect. The ratings and submit button should hidden.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🍂🦃