-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix: maintain open state when hovering over 'floating' tooltip content #2840
fix: maintain open state when hovering over 'floating' tooltip content #2840
Conversation
we're actually currently working on an overhaul of tooltips! in progress branch here + our accessibility proposal if you're curious! |
@dreamwasp nice! my change is related to a test.io audit for a feature we need to launch by Monday. (btw sorry i should have made this PR draft as im still waiting on alpha build - forgot it auto tagged people when opening a pr!) |
no worries, just wanted to share for visibility. i'll check out this pr once the pkgs built and all the good stuff, hoping to have new tooltips shipped later next week |
c04f647
to
7041765
Compare
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
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.
love this, i think the only things failing are jest snapshot tests in your integration PRs! i hadn't implement this behavior yet on my in-progress tooltip branch so this is super helpful thank youu!! ✨
…floating' tooltip content" Reverts #2840 -- breaks click handlers on tooltips
Overview
Adds event listeners to mouse overing a floating tooltip so it remains open.
Previously, the floating variant would close whenever mousing over the tooltip content.
PR Checklist
Testing Instructions
visit the prod storybook page for the tooltip. Go to the first example and set the

placement
asfloating
. Note that mousing over the tooltip example causes it to close (most of the time).now visit the new storybook page and confirm the fix - tooltip should stay open when mousing over the popover content.

PR Links and Envs