diff --git a/packages/ui/src/lib/components/Tooltip/Tooltip.svelte b/packages/ui/src/lib/components/Tooltip/Tooltip.svelte index da59d30a..6e833f9b 100644 --- a/packages/ui/src/lib/components/Tooltip/Tooltip.svelte +++ b/packages/ui/src/lib/components/Tooltip/Tooltip.svelte @@ -2,7 +2,6 @@ import { zIndex } from '$lib/constants.js'; import { Tooltip } from 'bits-ui'; import type { Snippet } from 'svelte'; - import { fly } from 'svelte/transition'; type Props = Tooltip.RootProps & { text?: string | null; @@ -18,21 +17,30 @@ - {#snippet child({ wrapperProps, props, open })} - {#if open} -
-
- {text} -
-
- {/if} - {/snippet} + {text}
{:else} {@render child({ props: {} })} {/if} + +