-
Notifications
You must be signed in to change notification settings - Fork 621
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
Add option labelId to improve a11y #971
Conversation
I haven't done a full review yet, but this seems great! Could we enable this by default if the choices element has an id? I'm not very familiar with using aria-labeledby in real world use cases, so I'm not sure if it's safe to make that assumption. |
Hi @mtriff , |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@brosua, sorry for the delay. I just realized I never fully reviewed this. It looks good, I'd like to see the following before merging:
|
Hi @mtriff , I thought about your idea again. |
That makes sense to me. This needs a unit test where |
Hi @mtriff |
Wonderful, thanks for the contribution! |
Description
A new option labelId was introduced. If this option is set, the choices element contains aria-labeledby. If someone uses a screenreader, he/she will get information, which label is associated with the focused input.
This fixes #937.
Screenshots (if appropriate)
Types of changes
Checklist