-
Notifications
You must be signed in to change notification settings - Fork 132
tooltip: allow aria-details in addition to aria-describedBy #2507
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
Comments
This makes me wonder if any of the automatic aria-details associations that have gone into recent HTML / CSS features might be updated. E.g., maybe aria-details isn't exposed if someone specifies an aria-describedby association to the same element. BUT, both are used if the element is named - because then the calculated description should only be the name of the element, and the aria-details association is important to let someone know there's even more information available than what the description provided. |
I tested
|
here is a test case so we can make sure we're running off the same example when i navigate to the test button (via tab key focus) - NVDA and JAWS both announce the description for the button as "foo" and each announce that the button "has details". it does not read the content of the tooltip because the tooltip is named and thus it only reads "foo". if i navigate to the button with virtual cursor, i hear it has details with both nvda and jaws. jaws will announce the description "foo" unlike nvda. i'm using default settings for both nvda and jaws - the same behavior exists when testing with both Firefox and Chrome/Edge. I'm curious if you continue to have a different experience testing from the same example, and if so, maybe what settings might be causing this diff. |
Discussed briefly in triage a few weeks ago: https://www.w3.org/2025/04/03-aria-minutes.html#02a4 |
@scottaohara I have retested your codePen example and yes: All combinations with NVDA, JAWS, Firefox and Chrome it works - I hear as well that the button has Details and that its label referenced by |
The spec currently says
It seems like aria-details might be a good alternative for authors and users (especially when done automatically via w3c/html-aam#545).
From a conversation with @scottaohara, the combination might also be useful, e.g.,
The describedBy could provide a brief summary (since the accDescription computation should stop once it gets the name of the tooltip) and the aria-details could be the signal that there's more content and an easy way to fully access it. (This example might also make it a candidate for #2215)
Maybe we can even resolve #979 with this new information.
The text was updated successfully, but these errors were encountered: