Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While we try to limit tooltip usage to only target interactive elements, we have a few use cases where we are aware of the issues with non-interactive elements and still want to provide additional information in tooltips for users using pointer devices only.
For example, we display a relative date when a comment was written but want to provide the ability to hover over and see the absolute date in a tooltip. This UX is pretty commonly used (e.g. see Slack, Linear, etc..).
My initial approach was to use the element as trigger for the tooltip, but that doesn't work unless the target is both Focusable and has an interactive-role.
I worked around the issue in the following way, but I don't think that the focusable element is wanted or that the use of
gridcell
here is correct.Beta Was this translation helpful? Give feedback.
All reactions