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

Fix issues a11y of tooltip #491

Merged
merged 6 commits into from
Feb 5, 2025
Merged

Fix issues a11y of tooltip #491

merged 6 commits into from
Feb 5, 2025

Conversation

Haberkamp
Copy link
Contributor

What?

This PR improves the a11y of the tooltip. The triangle of the tooltip gets no longer read out loud by the screenreader but the content of the tooltip does.

Why?

Announcing the triangle of the tooltip does not add any value to a screen reader user, it actually worsens the UX.

How?

I've added an aria-hidden attribute to the triangle.

Testing?

Checkout the branch preview, go to any mt-tooltip story. Activate your screenreader and focus the button. Now it should announce the content of the button, pause for a short amount of time and then announce the content of the tooltip.

@Haberkamp Haberkamp self-assigned this Jan 29, 2025
Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
meteor-component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2025 8:43am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
meteor-admin-sdk-docs ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2025 8:43am

@Haberkamp Haberkamp enabled auto-merge (rebase) February 5, 2025 08:34
@Haberkamp Haberkamp disabled auto-merge February 5, 2025 09:04
@Haberkamp Haberkamp merged commit c5471b3 into main Feb 5, 2025
9 checks passed
@Haberkamp Haberkamp deleted the fix-issues-a11y-of-tooltip branch February 5, 2025 09:05
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