-
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
feat(StructuredList): Accessibility refactor #8172
feat(StructuredList): Accessibility refactor #8172
Conversation
Deploy preview for carbon-elements ready! Built with commit 1789d5d |
Deploy preview for carbon-components-react ready! Built with commit 1789d5d https://deploy-preview-8172--carbon-components-react.netlify.app |
DCO Assistant Lite bot All contributors have signed the DCO. |
I have read the DCO document and I hereby sign the DCO. |
@tw15egan just fixed that styling issue! |
…37-improved-selection-a11y
…37-improved-selection-a11y
Looking great! Just has that small style nit for naming conventions and then snapshots that are failing in CircleCI 👀 |
Closes #1937
This PR is a big overhaul/refactor of StructuredList to provide an accessible experience for keyboard and screen reader users changes include
<label>
as row elements to handle clicks -- no using React.contextDeprecations
This PR introduces the following deprecations to existing StructuredList API (breaking changes should be behind a feature-flag:
label
prop which allowed table rows to select their nested radio buttons via event propagationdefaultChecked
maybe unnecessary, but React was throwing a warning about controlled/uncontrolled componentsonChange
our context setup utilizes the onChange prop on the inputs nowvalue
is now set according to contextTesting
Ideally, functionality, styling, and mouse based interaction should be identical with keyboard interaction and screen reader accessibility improving greatly 🏄🏽