Design comparison
Solution retrospective
Any feedback is greatly appreciated
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- The “icons/illustrations” in this component serve no other purpose than 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/
- The proper way to build the "rating buttons" in this challenge is to create a
form
and inside of it, there should be fiveinput radios
and eachinput
should have alabel
attached to it to make the buttons accessible. Finally wrap all theinputs
andlabels
inside afieldset
to prevent users from making more than one selection.
More Info:📚
MDN <fieldset>: The Field Set element
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding!🎄🎁
Marked as helpful1@nicolasfigPosted almost 2 years ago@vcarames Thank you I'll keep that in mind and will update the project when I have some free time
1 - The “icons/illustrations” in this component serve no other purpose than to be decorative; They add no value. There
- @AdrianoEscarabotePosted almost 2 years ago
Hello Nicolas F, how are you? I truly loved your project's outcome, however I have some advice that I hope you'll find useful:
To make the submit button work only when the user selects a number we can do this:
scores.forEach((score) => { score.addEventListener("click", () => { final_score.innerHTML = score.innerHTML; submit_btn.addEventListener("click", () => { pre_submitted.style.display = "none"; submitted.style.display = "flex"; }); }); });
The remainder is excellent.
I hope it's useful. 👍
Marked as helpful1@nicolasfigPosted almost 2 years ago@AdrianoEscarabote Thank you so much! Totally forgot about that
1
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