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

Set aria-hidden="true" when type is label #1247

Merged
merged 2 commits into from
Jul 30, 2022

Conversation

khiga8
Copy link
Contributor

@khiga8 khiga8 commented Jul 29, 2022

This PR makes a change so that when the tooltip type is label establishing an aria-labelledby relationship, the tooltip element will have aria-hidden="true". The reason for this change is to avoid screen reader users needing to hear duplicated content that they already hear when they navigate on the control itself.

This change has been made based on an internal Slack conversation and recommendation from @jscholes.

@changeset-bot
Copy link

changeset-bot bot commented Jul 29, 2022

🦋 Changeset detected

Latest commit: f8a1110

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

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

@khiga8 khiga8 temporarily deployed to github-pages July 29, 2022 23:56 Inactive
@khiga8 khiga8 force-pushed the kh-add-aria-hidden-when-labelledby branch from b88e314 to 934beeb Compare July 29, 2022 23:56
@khiga8 khiga8 marked this pull request as ready for review July 29, 2022 23:59
@khiga8 khiga8 requested review from a team and camertron July 29, 2022 23:59
@khiga8 khiga8 temporarily deployed to github-pages July 30, 2022 00:00 Inactive
@khiga8
Copy link
Contributor Author

khiga8 commented Jul 30, 2022

To do on Monday: share codespaces URL with @jscholes

@khiga8 khiga8 temporarily deployed to github-pages July 30, 2022 00:41 Inactive
@khiga8 khiga8 enabled auto-merge (squash) July 30, 2022 01:44
@khiga8 khiga8 merged commit dbe606b into main Jul 30, 2022
@khiga8 khiga8 deleted the kh-add-aria-hidden-when-labelledby branch July 30, 2022 05:29
@primer-css primer-css mentioned this pull request Jul 30, 2022
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