-
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(StructuredList): add role attribute to StructuredListRow #8898
fix(StructuredList): add role attribute to StructuredListRow #8898
Conversation
DCO Assistant Lite bot All contributors have signed the DCO. |
I have read the DCO document and I hereby sign the DCO. |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 56c75a7 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/60ca5bf4bbf0a200074225f1 😎 Browse the preview: https://deploy-preview-8898--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 56c75a7 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/60ca5bf442a80c000807eab7 😎 Browse the preview: https://deploy-preview-8898--carbon-components-react.netlify.app/iframe |
@atikenny could you clarify what the specific problem is that this change solves? StructuredList was updated recently with some accessibility improvements #8172, though I believe they're all behind the v11 flag for now. @dakahn was this addressed as part of it - moving away from the |
This PR fixes the original problem with the |
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.
@tay1orjones we have a total accessibility overhaul behind our feature flags right now yeah. But as for fixing existing problems with v10 StructuredList I'm all for that. I still see 16 errors for role="row"
in my Accessibility Checker though 👀
I tried fixing those as well, but unfortunately, I wasn't able to (it used to be 20 problems now it's 16). |
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.
i mean i'm cool with this. It fixes four errors 🏄🏽
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.
Thanks for the input @dakahn!
Relates to #4828
Fix the accessibility problem in the StrcuturedListRow.
Changelog
Changed
StructuredListRow
Testing / Reviewing
Check the accessibility of the component in Storybook using the IBM Able Chrome plugin.
Note
Tried to fix the related issue about the missing role for the label but that invalidates another rule that labels cannot have roles specified.