-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persist tooltips on hover #23959
Persist tooltips on hover #23959
Conversation
@@ -17,9 +17,6 @@ | |||
font-size: 12px; | |||
box-shadow: none; | |||
|
|||
// This prevents quickly hovering the tooltip from blocking hovering something else. | |||
pointer-events: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasmussen do you remember why we add this? (It was added on the original G2 branch).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the comment, it looks like it was added to make the tooltip "invisible" to a cursor so a user wouldn't accidentally click it when trying to click something else in the UI or on the canvas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Michael is right, yes. If you hover a button and see a tooltip, that might cover a button immediately above it, and if you quickly click there to click that button, you should be able to.
Tested locally, and it looks like it resolves the issue! Tooltips are able to persist. It looks like it was added during the G2 design refresh. I feel like there's a reason for this, but I'm lacking the context. Dropdowns, Top Toolbar mode, and typical mouse-based navigation still work. I'm comfortable with this fix @ntsekouras ! 🚀 |
Size Change: -20 B (0%) Total Size: 1.14 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this as well and it seems to work great, I can't remember why this has been added.
Thanks for fixing this so quickly. This should be included in WP 5.5 though, what is the best way to make sure that happens? @youknowriad |
yes, It has the "backport to Core" label, it means it will be backported before the next WordPress 5.5 beta. |
Description
Fixes: #23958
Checklist: