-
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
fix(TooltipV2): always add aria-hidden #5041
fix(TooltipV2): always add aria-hidden #5041
Conversation
🦋 Changeset detectedLatest commit: 6952f99 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 📦
|
…description-can-be-missed-or-encountered-twice
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/344522 |
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.
Thank you! It looks great - are there any commits at dotcom that need to go with this PR? @francinelucca
Yes! dotcom PR is up here |
…description-can-be-missed-or-encountered-twice
…description-can-be-missed-or-encountered-twice
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
Relates to https://github.com/github/primer/issues/3457
Currently the TooltipV2 only adds
aria-hidden=true
if tooltip is of type label. This is causing voiceover to announce the tooltip twice for "description" type tooltips: once for the tooltiped element'saria-describedby
, and once again for the actual tooltip item. This PR Addsaria-hidden=true
always to the Tooltip component to prevent screen readers from announcing the tooltip twice on MAC voiceover.Changelog
New
aria-hidden=true
in description type testChanged
aria-hidden=true
is always added to TooltipV2 componentActionMenu
tests to account for aria-hidden tooltipRollout strategy
Testing & Reviewing
Test production story against deployment. Notice tooltip is read out twice when using mac voiceover on prod but only once on deployment
Merge checklist