Feature request for tooltip component #276
Unanswered
jenniferarnesen
asked this question in
Q&A
Replies: 2 comments 4 replies
-
This should definitely be possible using the first example you posted: Investigating why it doesn't work as expected. |
Beta Was this translation helpful? Give feedback.
4 replies
-
@HendrikThePendric One small addition (internalOnMouseOver) and it is doing what I want (showing a tooltip only when button is disabled)
|
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
-
The dashboard PWA spec calls for certain buttons to be disabled when offline. Disabled buttons should show a tooltip. For example, from the design document:
Entering create mode while offline is not supported. If visible, the + button is disabled. Hovering the button triggers a tooltip with the content “Cannot create a dashboard while offline”.
. Since disabled buttons do not listen to mouse events (like hover), I need to find a different way to trigger the Tooltip.Current code:
Locally I can achieve it with the following (note the style on Tooltip and ComponentCover is added in the browser rather than style or className attribute since those components don't apply those props like I needed)
Is there a way to do this that I've missed or shall I put in a feature request?
Beta Was this translation helpful? Give feedback.
All reactions