-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Improve accessibility of Buttons in Webapp #6070
Conversation
Signed-off-by: Michael Telatynski <[email protected]>
Hi, thanks for your contribution! |
Hi, what happened with this PR? Blind people need it! |
What is holding this up? It improves a11y. It makes the app at least moderately usable with a screen reader. |
Some manual testing to make sure nothing breaks, that’s all. |
Jenkins please test this please. |
Any update on this? |
What would be considered an acceptable level of testing for this? If there aren't webdriver tests in place to exercise the UI, could volunteers manually test it to help this get merged? Maybe screen cap a video for review? |
I'm running this on my server and I have participated in a few meetings with great success. I'm blind using orca screen reader on linux with Firefox and Chrome. |
You are welcome Peter. |
Any chance of accessibility being taken seriously any time soon? A patch more invasive than this was already merged and reverted, this one takes care to not affect the UX for non-AT users at the expense of imperfect AT contract fulfilment. |
Friendly ping on this issue. The situation really is very very unsatisfactory. And the fact that we even have to resort to this compromise is, too. :-( But it would at least be a start. |
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.
Sorry for the delay. Left a couple of comments, otherwise LGTM.
onClick: disabled ? undefined : onClick | ||
onClick: disabled ? undefined : onClick, | ||
onKeyDown: this._onKeyDown, | ||
tabIndex: 0, |
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.
is tabIndex necessary?
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.
It is what puts the li
or div
into the tab rotation which makes it accessible by keyboard in the first place. If you were using a button
here then it wouldn't be needed.
onClick = { this.props.onClick } | ||
onKeyDown = { this._onKeyDown } | ||
role = 'button' | ||
tabIndex = { 0 }> |
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.
ditto
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.
same as above for this div, without it would not be reachable via keyboard
Thanks for this! I know we have a long way to go here, hopefully we can make steady progress. |
Rebirth of #5432 without the conflicting Space onKeyUp handler which made PTT not work when focus was on an accessible button.