Replies: 1 comment
-
|
That's a good idea. we should definitely implement that |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🚀 Feature request
Radix Tooltip supports a prop
skipDelayDurationthat determines, quotehttps://www.radix-ui.com/primitives/docs/components/tooltip#api-reference
i'd like zag to support it as well
🧱 Problem Statement / Justification
when the user accidentally moved away their pointer and the tooltip disappeared, properly set
skipDelayDurationimproves ux when they move the tooltip back✅ Proposed solution or API
add
skipDelayDurationto theTooltipmachine propsadditionally, it would be nice to expose whether the
openDelaywas skipped insideonOpenChanged, so that we could also skip entry/exit animation↩️ Alternatives
this can technically be done on the app side (by listening to
onOpenChangeand updatingopenDelay), but i believe this is core enough functionality that it should be implemented inside zag📝 Additional Information
i believe currently there is some kind of logic for cases when a tooltip gets opened while another one is already present and skip the delay in that case, but this is a bit different scenario
Beta Was this translation helpful? Give feedback.
All reactions