-
Notifications
You must be signed in to change notification settings - Fork 125
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 role should allow referencing by aria-labelledby #987
Comments
Relevant APG issues, example, and PR:
|
I think this is related to #979 which warrants a further discussion, but that's not slated until 1.3 but this one is 1.2? I think making this sort of change just further muddies what a tooltip is and doesn't help clarify why the role is even useful (on the web). |
Thanks for the reminder about #979, @scottaohara. I've moved it to 1.2 (@jnurthen I hope that's ok). I think w3c/aria-practices#1014 is related as well. This current issue (allow aria-labelledby) came up because someone submitted an APG PR for the toolbar example that added |
this is why i think #979 needs to be hashed out prior to work like this though. As the current definition states "A contextual popup that displays a description for an element." displaying the accessible name isn't its description, and can be currently done without necessitating a i mean, the |
Strictly speaking, this is an author should, not a must, so our PR that uses aria-labelledby is not necessarily dependent on this issue. That said, I agree with Scott that this further muddies the waters. |
I agree that tooltip role isn't currently very useful. |
Thank you both for the replies here. I plan on making some more comments in the other issue, but regarding this issue of Additionally, per Matt's comments in the other issue, I think we can agree that we wouldn't want to add any unnecessary verbosity to what would otherwise be just announcing the accessible name of an element, in giving it a role of tooltip. So I'm just unsure of why, if there are already ways to produce the desired announcement of an accessible name, and expose the name visually, without using a role, we would update the spec to make an allowance for a use case that doesn't require or add benefit from the role? |
Lets close this and discuss in #979 |
Currently, the tooltip role says:
This doesn't allow for labelling icon buttons in a toolbar.
We should allow aria-labelledby as well as aria-describedby.
The text was updated successfully, but these errors were encountered: