You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(Tooltip): Portal tooltip to body by default to fix overflow clipping. Resolves#446 (#828)
* feat(Tooltip): Portal tooltip to body by default to fix overflow clipping. Resolves#446
* feat(Tooltip): Add `fadeDuration` prop to control fade in/out transition
feat(Tooltip): Add `fadeDuration` prop to control fade in/out transition
6
+
7
+
The fade transition on `Tooltip.Root` is now configurable via the `fadeDuration` prop (default: `100`ms). Set to `0` to disable the fade transition entirely.
feat(Tooltip): Portal tooltip to body by default to fix overflow clipping. Resolves #446
6
+
7
+
Tooltip.Root now portals to `document.body` (or `.PortalTarget`) by default using the `portal` action from `@layerstack/svelte-actions`. This prevents tooltips from being clipped by ancestor elements with `overflow: hidden`. The tooltip uses `position: fixed` with viewport-relative coordinates when portaled. Set `portal={false}` to restore the previous inline behavior. Both `contained="container"` and `contained="window"` modes continue to work correctly with portaling.
By default, `Tooltip.Root` is portaled outside the chart DOM to `document.body` (or a `.PortalTarget` element if one exists). This prevents the tooltip from being clipped by ancestors with `overflow: hidden`.
0 commit comments