-
Notifications
You must be signed in to change notification settings - Fork 538
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
Toggle switch a11y take3 #3510
Toggle switch a11y take3 #3510
Conversation
* Address ToggleSwitch a11y feedback * Remove unused import * Add changeset * Fix tests
🦋 Changeset detectedLatest commit: 1087281 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
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.
@camertron I assume with merging main after #3520 resolves the failing tests at dotcom?
@broccolinisoup yes, that's correct 👍 |
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.
🚀
This reverts commit bdbcfd1.
This reverts commit 5f94786.
…3545) * Add deprecated notice and run console warn only in DEV * run when the env is not test * Revert "Toggle switch a11y take3 (#3510)" This reverts commit bdbcfd1. * take the list changes back for underlinenav * lint and test fix * Add back "Toggle switch a11y take3 (#3510)" This reverts commit 5f94786. * Revert "take the list changes back for underlinenav" This reverts commit 843e304. * fix after revert commit * remove console warning and update docs and changeset * fix changeset and update prop docs
This PR addresses the accessibility feedback for the ToggleSwitch component, outlined in this issue: https://github.com/github/primer/issues/1867. It is a re-submission of #3251 and #3433 which had to be reverted. See #3429 for details.
Namely it:
role=switch
from the button.aria-pressed
in favor ofaria-checked
.Screenshots
No visual changes
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.