From 2275ed30e4aba836eec280e9734d8ddcc9916e21 Mon Sep 17 00:00:00 2001 From: Gregor Wassmann Date: Sat, 7 Oct 2023 12:01:01 +0200 Subject: [PATCH] tooltip --- src/Tooltip/Tooltip.svelte | 57 ++++++-------------------------------- 1 file changed, 9 insertions(+), 48 deletions(-) diff --git a/src/Tooltip/Tooltip.svelte b/src/Tooltip/Tooltip.svelte index cc7c8d20ae..59dbe50e57 100644 --- a/src/Tooltip/Tooltip.svelte +++ b/src/Tooltip/Tooltip.svelte @@ -71,6 +71,8 @@ import { createEventDispatcher, afterUpdate, setContext } from "svelte"; import { writable } from "svelte/store"; import Information from "../icons/Information.svelte"; + import Popover from "../Popover/Popover.svelte"; + import PopoverContent from "../Popover/PopoverContent.svelte"; const dispatch = createEventDispatcher(); const tooltipOpen = writable(open); @@ -204,9 +206,9 @@ style:z-index="{open ? 1 : undefined}" {...$$restProps} > - {#if !hideIcon} -
- {triggerText} +
+ {triggerText} +
-
- {:else} - -
- {triggerText} -
- {/if} - {#if open} - -
- - - -
+ -
-
- {/if} + + +