-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
More autocompletion accessibility fixes #16526
Conversation
This hopefully fixes a glitch with NVDA which doesn't read the aria-live content the first time the element is added.
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.
Just a small question
@@ -207,6 +211,7 @@ export class AuthorInput extends React.Component< | |||
private renderAuthors() { | |||
return ( | |||
<div | |||
id="added-authors" | |||
className="added-author-container" | |||
ref={this.authorContainerRef} | |||
aria-labelledby="author-input-label" |
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.
Wouldn't having a label
with for
mean that this is redundant?
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.
You would think so, but VoiceOver didn't read it, and I couldn't set a label
without its for
or otherwise we get a linter error 😞
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.
🤦
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.
Approve
Closes https://github.com/github/accessibility-audits/issues/3287
Closes https://github.com/github/accessibility-audits/issues/3246
Closes https://github.com/github/accessibility-audits/issues/3244
Description
This work is a follow up of #16335 to address some accessibility issues that were reported after the PR was merged:
Co-Authors
label right before the input should be alabel
element instead of adiv
.Release notes
Notes: [Fixed] NVDA reads number of suggestions when an autocompletion list shows up