You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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