Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTooltip role should allow referencing by aria-labelledby #987
Comments
This comment has been minimized.
This comment has been minimized.
Relevant APG issues, example, and PR:
|
This comment has been minimized.
This comment has been minimized.
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). |
This comment has been minimized.
This comment has been minimized.
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 comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
I agree that tooltip role isn't currently very useful. |
This comment has been minimized.
This comment has been minimized.
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? |
This comment has been minimized.
This comment has been minimized.
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.