Today's fun #accessibility fact: there is no widespread agreement on how to create a tooltip: https://www.w3.org/TR/wai-aria-practices-1.1/#tooltip
Conversation
Notices
-
Nolan (nolan)'s status on Tuesday, 04-Jun-2019 02:55:01 CEST Nolan -
Nolan (nolan)'s status on Tuesday, 04-Jun-2019 02:57:49 CEST Nolan For #Pinafore I actually did implement a tooltip, and for that I used role="tooltip". https://github.com/nolanlawson/pinafore/blob/master/src/routes/_components/Tooltip.html But the jury is apparently still out on the right way to do this, and if the widget were more complex than just some text, I'm not sure what I would do.
-
Nolan (nolan)'s status on Tuesday, 04-Jun-2019 03:02:33 CEST Nolan For instance, imagine if Pinafore had a feature like Twitter where you could hover over someone's name and a little infobox popped up showing their profile. How should it handle keyboard navigation? When the link gets focus, do you immediately move focus to the infobox? How about screen readers? https://github.com/nolanlawson/pinafore/issues/1010 #accessibility
-