Skip to content

Use of tooltip on an element not focusable natively #2943

Answered by nkrantz
Fazle-Jahangir asked this question in General
Discussion options

You must be logged in to vote

Hi again! You're correct that placing a Tooltip on a non-focusable element is not accessible, because the Tooltip content would be unreachable by some users. The workaround you're referring to is a bit hacky and not an expected pattern for users (focusing on a Card to see a Tooltip).

We'd recommend placing the Tooltip on a regularly focusable element, following the guidelines you mentioned. Maybe an Icon Button. Alternatively, you could find a new way to display the information in the Tooltip. Is a Tooltip really necessary in this design? It's often possible to find workarounds for the Tooltip, like displaying the information as part of the Card, for example.

Let us know where you end up …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nkrantz
Comment options

You must be logged in to vote
1 reply
@nkrantz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants