-
-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[A11Y] Explicitly state aria-hidden
value; hide icons from screenreaders
#3027
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The string value suffices and we don't need a raw boolean, right?
EDIT: Actually, I think I would prefer using a boolean regardless. It's a bit more explicit as to the intended meaning.
Sure. Mithril converts the boolean to a string when rendering to the DOM, but both ways are fine. I think the boolean might actually be slightly smaller in terms of JS bundle :P |
53dfc9f
to
b340c32
Compare
Actually it seems this will not work. Mithril converts the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. Maybe we should open an issue with Mithril?
No, its intended behaviour. That way you can set an attribute depending on a conditional, like |
Changes proposed in this pull request:
aria-hidden
(needed for Talkback on Android)Reviewers should focus on:
🤷
Confirmed