P
Fluffy Kas• 7,735
@FluffyKas
Posted
Heyo,
Looks like a really good solution! One thing you could do is to disable the submit button until the user chooses a rating to prevent empty submissions. Few tips to improve on accessibility:
- They best solution for this sort of rating system is radio buttons. The function of a list of regular buttons may not be immediately obvious for someone who doesn't rely on visuals to use the internet (e.g. ppl using screen readers). To achieve this, you can visually hide the radio buttons and display their labels as the clickable "buttons". Plus, this makes handling the JS bit much easier too. Probably you won't rework the challenge, but I thought it's something you might wanna keep in mind the next time you face a problem like this.
- Although this is just a component, it's generally a good idea to wrap all your content in at least a <main> tag.
- For decorative images, you should leave the alt text blank (the star icon and the little image on the thank you page could be both considered decorative images).
Well done :)
Marked as helpful
2