atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.78k stars 517 forks source link

Accessibility: Hoverable #1104

Closed ferllings closed 1 year ago

ferllings commented 1 year ago

Hello,

On non-interactive mode, the tooltip fails WCAG 1.4.13 criteria. https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html

Using interactive=true would allow the tooltip to be hoverable, but it removes aria-describedby attribute and incorrectly adds aria-expanded.

I'm trying to see, if I can change the default behaviour using the tippy Lifecycle Hooks, but it would be good if this is implemented by default.

ferllings commented 1 year ago

Closing as already answered: https://github.com/atomiks/tippyjs/issues/750