-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix: a11y combobox attributes (fixes #147) #198
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.
looking at the example, we maybe have too many different aria-labelledbys, perhaps the one on the ul could be made the same as the one on the button? https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/#sc1_label |
- questionTextId removed. This reads without being explicitly defined.
Hey @oliverfoster, I've made a couple of commits to align this with the WCAG example you shared. Overall this is reading much better. We still have the issue mentioned above where VoiceOver in Safari reads "Misspelt" and cuts off the label. I can only replicate this in Safari. VoiceOver in Chrome reads beautifully. NVDA in Chrome and Edge read nicely too. I'm running Safari v18.0.1 - not sure if this is a Safari specific issue or limited to a particular version. I'll give this a test on iPhone Safari and I'll see if I can replicate the issue. I'll also test the master branch (as it may be an issue prior to this PR). Update: VoiceOver on iPhone works as expected so the issue seems to be specific to Safari on macOS. I couldn't replicate issue running the master branch so the issue has been introduced during this PR. |
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.
Perfect, now working as expected across all browsers with screen reader/keyboard 👍
One second, just reading again. |
What happens when there is no |
Good point! In this instance, should it read the following:
|
Sounds great, yes. |
I've implemented the above in commit b77f232. Note, due to In the instance, |
Co-authored-by: Oliver Foster <[email protected]>
Co-authored-by: Oliver Foster <[email protected]>
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.
do these need changing?
👍 |
🎉 This PR is included in version 7.6.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fixes #147
Fix