Rating component built with vanilla js

Solution retrospective
I am still unsure of how to retain the colors of the hover state when the buttons for the rating are clicked in order to highlight its difference from other buttons upon being clicked. I am equally not sure of its outlook on mobile devices as i didn't use any media queries. Any suggestion or constructive criticism is welcome.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Babapara'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