Interactive rating component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @Rubylena
A few suggestions:
- you can use the very-dark-blue for your card background.
- Light grey for the star background and the numbers, you can use
hsla()
function to have control of color opacity. - To display the selected vote on your results page, you need to use javascript insert the vote in your ratings by inserting this line in each of your selected functions.
vote = '4'; document.getElementById('rating').innerHTML=vote;
With this there is no need to return each of the vote.
Marked as helpful
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