From e18f956393e5fac6645bebc68e3387288493856f Mon Sep 17 00:00:00 2001 From: diamonddrake Date: Sat, 30 Aug 2025 09:34:08 -0400 Subject: [PATCH] resolve --rt-transition-show-delay closer to toolip Changing `--rt-transition-show-delay` anywhere except in head or on body were not be picked up by show/hide timeouts causing out animations to be skipped entirely by removing the tooltip from the DOM. this change evaluates the variable on the tooltip its self so that the property can be honored lower in the tree. --- src/components/Tooltip/Tooltip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index 63310afb..ebc00ffd 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -236,7 +236,7 @@ const Tooltip = ({ /** * see `onTransitionEnd` on tooltip wrapper */ - const style = getComputedStyle(document.body) + const style = getComputedStyle(tooltipRef.current || document.body) const transitionShowDelay = cssTimeToMs(style.getPropertyValue('--rt-transition-show-delay')) missedTransitionTimerRef.current = setTimeout(() => { /**