-
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
fix(combobox): update to match ARIA 1.2 criteria #7777
Conversation
Deploy preview for carbon-elements ready! Built with commit b18204e |
Deploy preview for carbon-components-react ready! Built with commit b18204e https://deploy-preview-7777--carbon-components-react.netlify.app |
Deploy preview for carbon-elements ready! Built with commit 9581a5c |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 9581a5c https://deploy-preview-7777--carbon-components-react.netlify.app |
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.
Looks great. Such awesome work. Checked on Windows 10 in Firefox with Accessibility Checker, NVDA, and JAWS latest
The only thing I noticed is that selected options aren't read as 'selected'. WCAG spec allows aria-describedby
to reference hidden
html elements. So maybe giving the svg the name 'selected' and then setting it to hidden
and referencing it's name with aria-describedby
on the menu item might be a cool option.
Issue for the enhancement: #7787 |
@laurenmrice just a heads up, with this change the button now receives a focus style and has a click area. It seems like the dimensions of this might need to be updated since it is too narrow, here is a video and an image that I hope will help out with explaining 👀 Screen.Recording.2021-02-11.at.14.45.51.movWith these changes, what do you think would be the ideal spec for the menu trigger? 👀 |
@joshblack We should make both focus squares for the close icon and chevron icon 24px. We also do the same thing right now for file uploader. |
Thanks @laurenmrice ! @andreancardona would you want to tackle this or should I? 👀 |
@joshblack This is blocking Code Engine eGA in Mar, could you please finish this bug fix this month? Thank you very much! |
@joshblack This is blocking Satellite eGA on 3/1, could you please fix this asap? Thank you very much! https://github.ibm.com/alchemy-containers/satellite-ui/issues/469 |
Accessibility review
Other things I noticed:
|
@carrenelloyd @alisonjoseph Just an update I am working to address all these issues! :) |
Co-authored-by: Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>
Done! :) @carmacleod Thank you so much for catching that! |
In version 11, if I add the aria-label property on Combobox, the property is ignored and the aria-labelledby property is automatically generated. When I use the IBM accessibility Checker, I get this error: |
@oartigue this was merged 3 years ago. Feel free to cite this PR, but you should open a new issue. it's unlikely to be noticed, otherwise |
In version 11, if I add the aria-label property on Combobox, the property is ignored and the aria-labelledby property is automatically generated. When I use the IBM accessibility Checker, I get this error: |
Closes #6938
Updates the combobox implementation to match the authoring practices reference and includes updates from #6938 as suggested by @carmacleod
Changelog
New
Changed
getRootProps
applied to it, these attributes now are on theinput
Removed
Testing / Reviewing