-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Accessibility bug: buttons are spamming aria-pressed but they are not toggle buttons #6325
Comments
I would like to get my feet wet contributing to OSS and don't mind contributing this one liner if its okay with the Bsky team. |
These accessibility improvements looks a lot of sense. |
@PaulACoroneos the bug is probably this line of code (it should be removed): social-app/src/components/Button.tsx Line 461 in 5f7caf3
|
Yep thus me mentioning 1 liner 😊. |
I would just PR it. They take PRs from the community! |
Steps to Reproduce
This is probably a bug in react-native-web, but that's no excuse.
<button>
aria-pressed="false"
aria-pressed="true"
aria-pressed="false"
This one is easy. It's wrong.
From https://w3c.github.io/aria/#aria-pressed and https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed
These are not toggle buttons.
aria-pressed
is not added to buttons that are not toggle buttonsAttachments
Relevant html
What platform(s) does this occur on?
Web (Desktop), Web (Mobile)
Device Info
Not Relevant
What version of the app are you using?
Web
Additional Information
The problem here is that people may have turned on options that announce something when the button becomes "toggled-on". You don't want that.
The text was updated successfully, but these errors were encountered: