-
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(multi-select): fix DAP violations #4991
fix(multi-select): fix DAP violations #4991
Conversation
Deploy preview for the-carbon-components ready! Built with commit 194f9fa https://deploy-preview-4991--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit 194f9fa https://deploy-preview-4991--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 194f9fa |
Deploy preview for the-carbon-components ready! Built with commit dc7c9a5 https://deploy-preview-4991--the-carbon-components.netlify.com |
Deploy preview for carbon-elements failed. Built with commit dc7c9a5 https://app.netlify.com/sites/carbon-elements/deploys/5e18ab92c7b810000899b790 |
Deploy preview for carbon-components-react failed. Built with commit dc7c9a5 https://app.netlify.com/sites/carbon-components-react/deploys/5e18ab9216008d000891265c |
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.
LGTM 👍 - Could you update the snapshot? Thanks @aledavila!
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 good, confirmed the DAP violations are no longer appearing 👍
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 good to me, just need to update snapshots to pass CI
* fix(multi-select): add arialabeledby to menu * fix(list-box): remove role from listbox * chore: remove console log * chore: update snapshots Co-authored-by: TJ Egan <tw15egan@gmail.com>
)" This reverts commit 8a20d0e.
Closes #4007
worked with @joshblack during mob programming.
DAP violations for proper labeling have been cleared.
Add
aria-labelledby
toMultiselect.menu
to be labeled by main labelRemoved
removed
role='listbox'
from ListBox component. We concluded it's not needed on the outside container. The Listbox menu already has arole='listbox'
removed unnecessary aria from outer multiselect container.
@dakahn was wondering if you can take a look at the issue and thoughts on the DAP violations for the checkbox group (doesn't have proper grouping).