Created accessible rating page

Solution retrospective
I am glad that I was able to keep my JS code short and concise, though this was a simpler project so that was probably the main reason. I also used semantic HTML, and I used fewer random <div> containers for random positioning that I used to which also cleared the clutter in my HTML.
What challenges did you encounter, and how did you overcome them?Not many challenges for this one, just one thing was that I didn't realize that labels were inline elements, which I realized by using dev tools in a new way that I did not know I could before: if a certain style is not actually being applied, inspect that element and go to the "styles" tab, which will show the styles being applied; if something is not being applied, it will be shaded slightly grey and there will be and "i" icon that gives information about why that style is not being applied.
What specific areas of your project would you like help with?For my radio buttons, I made them display: none and used the labels. But, I could not tab through them so I used tabindex. This allowed me to tab through the rating buttons, but I couldn't just click "enter" or "space" like a normal button. So, my question is how is this done?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on 14avi14's solution.
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