profile
viewpoint

Ask questionsNested tooltip demo on docs is not keyboard/AT accessible

Bug description

With nested tooltips https://atomiks.github.io/tippyjs/#nesting it's not possible to reach the controls inside the first tooltip with the keyboard. And as a result, this also makes the approach not AT operable. I'd strongly recommend against placing interactive controls inside tooltips, unless they are coded more as disclosure widgets or mini dialogs (where after triggering, focus is moved into the mini dialog)

Reproduction

Try using https://atomiks.github.io/tippyjs/#nesting with a keyboard.

atomiks/tippyjs

Answer questions atomiks

I was wondering if you had any good ideas about making an interactive tippy accessible by default? Is it possible for a library to do reliably?

I feel like it needs to be left up to the developer. Doing it "automatically" is problematic, esp. when it comes to which node to append the tooltip to, clipping issues, focus management, etc.

useful!
source:https://uonfu.com/
Github User Rank List