Skip to content
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

Bring back the tooltip warm-up period #230

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Bring back the tooltip warm-up period #230

merged 1 commit into from
Aug 2, 2024

Conversation

robintown
Copy link
Member

@robintown robintown commented Aug 2, 2024

To make it easier to browse through tooltips on neighboring elements, a common UX optimization is to allow the hover delay to be "warmed up", so that it goes to zero after the first hover. We used to have this before the tooltip component was rewritten.

Screencast.from.2024-08-02.12-41-01.webm

This is a breaking change because consumers are now required to wrap their application in a <TooltipProvider> component once again. I thought it'd be nice to do this before the next release because #229 and #211 are already breaking.

@robintown robintown requested a review from a team as a code owner August 2, 2024 16:42
@robintown robintown requested review from dbkr and t3chguy and removed request for a team August 2, 2024 16:42
To make it easier to browse through tooltips on neighboring elements, a common UX optimization is to allow the hover delay to be "warmed up", so that it goes to zero after the first hover. We used to have this before the tooltip component was rewritten.

This is a breaking change because consumers are now required to wrap their application in a <TooltipProvider> component once again.
Copy link

cloudflare-workers-and-pages bot commented Aug 2, 2024

Deploying compound-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: f550d26
Status: ✅  Deploy successful!
Preview URL: https://1c38d084.compound-web.pages.dev
Branch Preview URL: https://warmup-period.compound-web.pages.dev

View logs

@robintown robintown changed the title Bring back the tooltip warp-up period Bring back the tooltip warm-up period Aug 2, 2024
@robintown robintown merged commit ea164d8 into main Aug 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants