-
-
Notifications
You must be signed in to change notification settings - Fork 91
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] Trigger does not set aria-describedby #1420
Comments
@atomiks We're not intentionally leaving out aria-describedby right? |
It seems to be a very common pattern that most other libraries support. I think the use-case of tooltips providing more information for an element (as described in the pattern above) is much more widespread. MUI provides a prop to specifically define whether the tooltip is applied as description (title) to the element or not. |
Another issue is the lack of touch support. Using tooltips to provide important information about an interactive element is problematic, because they don't work on touch devices. It seems less problematic to relegate tooltips to being strictly used for displaying information that is not important. |
The most common use case for tooltips is visually labelling an icon button rather than providing 'extended' information about something that is already labelled/has button text.
It's because of touch input not showing tooltips that Agree with @colmtuite that tooltips should only display non-critical information and not be used as the primary labeling method due to touch input. We have a PR to add guidelines for Tooltip: #1356. If your tooltip is acting as 'extended' information (a real description, not a label) then you should probably be using a I personally think a |
Can merge this. We'll loop back around later and fix it up when we get callouts etc. in |
Feature request
Summary
BaseUI’s
Tooltip
component currently lacks a built-in way to properly associate tooltips with their trigger elements usingaria-describedby
. This feature would improve accessibility by ensuring that assistive technologies, such as screen readers, can properly announce tooltips as descriptions for their related elements.Examples in other libraries
MUI Tooltip
React Aria Tooltip
Motivation
aria-describedby
ensures that users relying on screen readers receive the tooltip information when focusing on the element.The text was updated successfully, but these errors were encountered: