Interactive Rating Componen

Please log in to post a comment
Log in with GitHubCommunity feedback
- @lordag
Good!
From what I read it is not necessary to use aria-live="polite" on every voting button, as aria-live is usually used for dynamic content updates that the user might want to hear, such as messages or notifications that appear or change in real time (for example, a confirmation message).
I used aria-pressed to indicate the state of the button (whether checked or unchecked), this seems sufficient to communicate the state to users who use assistive technologies.
I would just recommend putting the css and javascript in separate files, it would be more readable. In the next challenge try using Sass.
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