Skip to content

fix(DataTable): fix a11y issues with selection variant#14206

Merged
kodiakhq[bot] merged 3 commits into
carbon-design-system:mainfrom
tw15egan:data-table-selection-a11y
Jul 13, 2023
Merged

fix(DataTable): fix a11y issues with selection variant#14206
kodiakhq[bot] merged 3 commits into
carbon-design-system:mainfrom
tw15egan:data-table-selection-a11y

Conversation

@tw15egan

Copy link
Copy Markdown
Contributor

Closes #14053

Fixes an issue where an aria-label was placed on a label with no role. Since no valid roles are available, I've moved the text from an aria-label to be placed inside the label and visually hidden.

Changelog

Changed

  • removed aria-label, use aria-label to generate label text and hide it

Testing / Reviewing

Go to DataTable w Selection story and run the a11y checker. Ensure there are no more violations and the functionality remains the same.

@tw15egan tw15egan requested a review from a team as a code owner July 13, 2023 14:51
@netlify

netlify Bot commented Jul 13, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 3321005
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/64b05ccd0ba4c7000742424e
😎 Deploy Preview https://deploy-preview-14206--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify

netlify Bot commented Jul 13, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 3321005
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/64b05ccd66aafd0008cdc7a9
😎 Deploy Preview https://deploy-preview-14206--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@guidari guidari left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with VO and looks good!

@kodiakhq kodiakhq Bot merged commit a410069 into carbon-design-system:main Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[a11y]: DataTable [selection] - "aria-label" is not valid for the element <label>

3 participants