Skip to content
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

[@mantine/core] Switch: fix accessibility V6 #5755

Merged

Conversation

ocshawn
Copy link
Contributor

@ocshawn ocshawn commented Feb 12, 2024

Fixes #5699.

Backport of #5746

Things to note:

  • Due to the implementation of role="switch", some tests needed to be adjusted.
  • Screen readers no longer read out the onLabel and offLabel values, however I consider this to be appropriate as the label or aria-label should be used to provide enough context that these values are not needed.
  • Screen reader testing was conducted across ChromeVox and Ubuntu Orca.
  • Open to suggestions on types for bodyElement and labelElement.

@rtivital rtivital merged commit 311a893 into mantinedev:v6 Feb 26, 2024
1 check passed
@rtivital
Copy link
Member

Thanks!

@ocshawn ocshawn deleted the fix-switch-accessibility-backportToV6 branch March 4, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants