Design comparison
Solution retrospective
This was another fun js project to get started with. This one was good for working with the DOM, adding/removing classes to elements based on choices then a little CSS showing/hiding areas. I wasn't too concerned with making it pixel perfect CSS wise just working with the style guide, I more wanted some js practice. I'm looking forward to seeing how others added the stars after making the rating selection - I just stored the rating in a variable and then did a for loop where it added a star img element each time.
On to the next.
Community feedback
- @ChamuMutezvaPosted over 2 years ago
The ideal element to use for the ratings are radio buttons not ordinary buttons. The button of type submit is associated with form submission hence I would expect input elements. That should as well help with accessibility to assistive technology users - radio buttons will let users know that they have to make one selection where as the buttons in this case will be interpreted wrongly.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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