feat(multiselect): allow disabled listbox items#9859
Conversation
|
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 390a87e 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/6170792887e7d200080752db 😎 Browse the preview: https://deploy-preview-9859--carbon-react-next.netlify.app |
|
A few notes regarding the accessibility of this:
Overall I think we're within bounds accessibility-wise. @dakahn @mbgower definitely would appreciate any critique you might have of my thinking here! |
|
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 390a87e 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/6170792864c33100070e6059 😎 Browse the preview: https://deploy-preview-9859--carbon-elements.netlify.app |
|
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 390a87e 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/61707928c6b085000833afcc 😎 Browse the preview: https://deploy-preview-9859--carbon-components-react.netlify.app |
|
Yep downshift does its job when it comes to disabled. Nice! I'd actually recommend |
dakahn
left a comment
There was a problem hiding this comment.
Totally agree with keeping the disabled item focusable -- good call there. Looks good 👍🏾
laurenmrice
left a comment
There was a problem hiding this comment.
The disabled text and icon should be color token $disabled-02, not -03.
|
@laurenmrice thanks for catching that! Just updated it. |
Closes #9610
Refs #6477
Modifies MultiSelect to pass through the
disabledoption on items to downshift. Adds new styles to properly display disabled items.Changelog
New
Changed
disabledoption for listbox itemsTesting / Reviewing
carbon-components-reactstorybook default MultiSelect story. The third option in the listbox should have thedisabledattribute and appear disabled.carbon-react-nextstorybook default MultiSelect story. The third option in the listbox should have thedisabledattribute and appear disabled.