diff --git a/src/runtime/components/Tooltip.vue b/src/runtime/components/Tooltip.vue index 1a260885..56c8425c 100644 --- a/src/runtime/components/Tooltip.vue +++ b/src/runtime/components/Tooltip.vue @@ -44,7 +44,10 @@ defineSlots() const forwardRoot = useForwardPropsEmits(reactivePick(props, 'defaultOpen', 'open', 'delayDuration'), emits) const forwardContent = useForwardProps(reactivePick(props, 'side', 'sideOffset', 'align', 'alignOffset', 'avoidCollisions', 'collisionBoundary', 'collisionPadding', 'arrowPadding', 'sticky', 'hideWhenDetached')) -const ui = computed(() => tv({ extend: tooltip, slots: props.ui })()) +// FIXME: Cannot extend multiple times +// const ui = computed(() => tv({ extend: tooltip, slots: props.ui })()) +// eslint-disable-next-line vue/no-dupe-keys +const ui = computed(() => tooltip()) - \ No newline at end of file diff --git a/src/theme/tooltip.ts b/src/theme/tooltip.ts index e3bf35c6..cafc103c 100644 --- a/src/theme/tooltip.ts +++ b/src/theme/tooltip.ts @@ -1,6 +1,6 @@ export default { slots: { - content: 'bg-white dark:bg-gray-900 text-gray-900 dark:text-white shadow rounded ring-1 ring-gray-200 dark:ring-gray-800 h-6 px-2 py-1 text-xs font-normal truncate relative', + content: 'bg-white dark:bg-gray-900 text-gray-900 dark:text-white shadow rounded ring-1 ring-gray-200 dark:ring-gray-800 h-6 px-2 py-1 text-xs font-normal truncate relative data-[state=delayed-open]:data-[side=top]:animate-[slideDown_200ms_ease-out] data-[state=delayed-open]:data-[side=right]:animate-[slideLeft_200ms_ease-out] data-[state=delayed-open]:data-[side=left]:animate-[slideRight_200ms_ease-out] data-[state=delayed-open]:data-[side=bottom]:animate-[slideUp_200ms_ease-out] data-[state=closed]:data-[side=top]:animate-[slideUp_200ms_ease-in] data-[state=closed]:data-[side=right]:animate-[slideRight_200ms_ease-in] data-[state=closed]:data-[side=left]:animate-[slideLeft_200ms_ease-in] data-[state=closed]:data-[side=bottom]:animate-[slideDown_200ms_ease-in]', arrow: 'fill-white dark:fill-gray-900' } } \ No newline at end of file