Interactive rating component using flex box and DOM

Solution retrospective
3rd Project
This is an Interactive rating card component that uses flexbox and DOM
1.Are there any accessibility tweaks that I can improve?
2.Any bad coding in my javascript?(Because I'm not still much familiar with js. still learning...)
solution URL: Git-hub-repo
Live Site URL: Site
Thank you! 😊
Please log in to post a comment
Log in with GitHubCommunity feedback
- @sandro21-glitch
Hi Name
Here are few suggestions to improve the code
Add aria-labels to the buttons to improve accessibility. For example, you can add aria-label="Submit rating" to the submit button.
Use const instead of let when declaring a variable that won't be reassigned.
Add comments to explain what the code does.
Happy Coding
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