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

[Tooltip] Does not provide accessible tooltip role #1427

Closed
mathias-falkenberg opened this issue Feb 6, 2025 · 3 comments
Closed

[Tooltip] Does not provide accessible tooltip role #1427

mathias-falkenberg opened this issue Feb 6, 2025 · 3 comments
Labels
component: tooltip This is the name of the generic UI component, not the React module!

Comments

@mathias-falkenberg
Copy link

Bug report

Current behavior

The Tooltip.Popup component renders with role='presentation'

Expected behavior

I would expect the tooltip to follow the WAI-ARIA Tooltip pattern, which states that the tooltip element should use the tooltip role.

Reproducible example

https://base-ui.com/react/components/tooltip

Base UI version

1.0.0-alpha.5

Which browser are you using?

Chrome/Edge

Which OS are you using?

Windows

Which assistive tech are you using (if applicable)?

Microsoft Narrator

@mathias-falkenberg mathias-falkenberg added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 6, 2025
@atomiks atomiks removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 6, 2025
@atomiks
Copy link
Contributor

atomiks commented Feb 6, 2025

This falls under the same issue as #1420. The role would be added if aria-describedby gets added, but otherwise it's currently only a visual-only element

@mathias-falkenberg
Copy link
Author

It seems a bit counter-intuitive to provide a 'Tooltip' component that is not a tooltip in the WAI-ARIA sense. Particularly when the library claims to adhere to the WAI-ARIA Authoring Practices...

@atomiks
Copy link
Contributor

atomiks commented Feb 7, 2025

provide a 'Tooltip' component that is not a tooltip in the WAI-ARIA sense

Added some comments about this: #1420 (comment), will close this as duplicate of #1420

@atomiks atomiks closed this as completed Feb 7, 2025
@zannager zannager added the component: tooltip This is the name of the generic UI component, not the React module! label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tooltip This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants