Interactive rating component using DOM manipulation.
Design comparison
Solution retrospective
Hello everyone!
This is my second Frontend Mentor challenge. This one was a little harder for me because I still have a long way to go in learning javascript, so even though it was a very simple project I felt like throwing my notebook out the window.
I would love to receive feedback and tips for improvement! ❤️
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here is some feedback to further improve your code:
- Your rating buttons and submit button need to be wrapped inside a
form
, have a visually hiddenlegend
for accessibility and afieldset
to improve semantics.
More Info: 📚
- Your "thank you" content needs to be announced to screen readers ⚠️ when it appears, so it needs to be wrapped in an additional
div
and have anaria-live="polite"
.
- For your JS, the
eventListener
should be on theform
⚠️ as asubmit
.
More Info:📚
Click vs. Submit EventListeners
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🎆🎊🪅
Marked as helpful0@esthevlanaPosted almost 2 years ago@vcarames thank you so much for the tips! I'll read all the material you sent me and try to improve the code!
0 - Your rating buttons and submit button need to be wrapped inside a
Please log in to post a comment
Log in with GitHubJoin 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