Interactive Rating Component including web accessibility standards.
Design comparison
Solution retrospective
I was able to replicate the design and functionality, whilst including appropriate web accessibility attributes within the HTML.
What challenges did you encounter, and how did you overcome them?The colors of some elements such as the background around the star icon and the numbers weren't correct. They didn't match what was in the style guide. Perhaps it's a shading or opacity issue?
What specific areas of your project would you like help with?I would like to know how I should've overcome the background issue I mentioned. I also wonder if the element classes I used were appropriately named. Also, if the JS I used could've been done more optimally.
Community feedback
- @huyphan2210Posted 22 days ago
Hi, @Devs-advocate
I reviewed your solution and wanted to share a few thoughts:
- The
style-guide.md
doesn’t specify exactly where to use the colors. You'll need to experiment with them and see what works best. If none of the provided colors seem to fit, you can use a color picker tool online. Just upload the design image and use the tool to extract the required colors. - I think you could improve your CSS class naming. Consider looking into some CSS naming conventions (e.g., BEM, SMACSS, or OOCSS). Choosing one and sticking to it will make your code more maintainable and easier to understand.
Hope this helps!
Marked as helpful0 - The
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