Submitted almost 3 years agoA solution to the Interactive rating component challenge
Rating Component using Tailwind CSS and Alpine.js
tailwind-css, accessibility
P
@LeeConnelly12

Solution retrospective
Had an issue where when tabbing through the ratings, you can't press space to select a label's hidden input.
Solved this by listening for a space key press event on the label and selecting the rating that way.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Lee'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