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

Tooltips in Compound Web should rely on a global provider #234

Closed
robintown opened this issue Oct 3, 2023 · 0 comments · Fixed by element-hq/compound-web#137
Closed

Comments

@robintown
Copy link
Member

Currently, if you hover over a series of tooltip elements, you can observe that there is a delay incurred every time before the tooltip appears:

Screencast.from.2023-10-03.09-52-09.webm

It would be nice if this delay could be removed when hovering over further tooltip triggers, after the initial "warm-up" period. Radix tooltips do actually implement this behavior (see the skipDelayDuration prop in the tooltip docs), but because we mount a separate tooltip Provider for every tooltip, this "warm-up" state isn't shared across tooltips. To fix this, we should require consumers to wrap their application in a global Provider, and remove it from the individual tooltip component instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant