interactive rating component /js

Please log in to post a comment
Log in with GitHubCommunity feedback
- @RyukioMiyamoto
Great job lukasz! I would just like to make two suggestions:
- Final result is not matching 100% the proposed design, like font-size on the heading.
- Although it was a very nice addition to prevent user from submiting without a rating, there's more elegant ways to do so than using alert(), like adding an <p> that only shows on submit, for example.
There's also the matter of accessibility issues, which frontend mentor is pointing in your report:
- Document should have one main landmark
- All page content should be contained by landmarks
Basically you can solve both by just changing your wrapper div to a <main> tag, which is of significant importance to screen readers. Hope you find this helpful! Good coding.
Marked as helpful
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