
Design comparison
Community feedback
- P@RahexxPosted 3 months ago
Great job! Here’s some feedback from me:
HTML
- It looks like you're missing a rating block, where the classes for your elements are referenced.
- You're using an ID, but in this case, it would be better to use a class.
- The
alt
attribute is missing for theicon-star.svg
image.
SASS
- Your styles look good overall.
- The submit button has a different background than the design specifies.
JS
- Your JavaScript is great and clean.
- Good call on extracting the logic for removing the active class from the buttons into a separate function.
Marked as helpful0@lordagPosted 3 months ago@Rahexx About the alt attribute, I thought that by putting
role="img"
andaria-label="Star Icon"
on the container andaria-hidden="true"
on the image, I would not have to put text in the alt of the image because assistive technologies would treat the container as an image.I still need to get used to WAI-ARIA.
For the button, I wanted to keep it disabled until the user selects a rating and decided to put a different background.
Thanks again for your feedback, it's always helpful!
1
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