fix(Tooltip): add color in config

This commit is contained in:
Benjamin Canac
2023-06-16 15:00:00 +02:00
parent e2f7d82d62
commit 1b03b8a531
2 changed files with 2 additions and 1 deletions

View File

@@ -737,6 +737,7 @@ const tooltip = {
container: 'z-20', container: 'z-20',
width: 'max-w-xs', width: 'max-w-xs',
background: 'bg-white dark:bg-gray-900', background: 'bg-white dark:bg-gray-900',
color: 'text-gray-900 dark:text-white',
shadow: 'shadow', shadow: 'shadow',
rounded: 'rounded', rounded: 'rounded',
ring: 'ring-1 ring-gray-200 dark:ring-gray-800', ring: 'ring-1 ring-gray-200 dark:ring-gray-800',

View File

@@ -6,7 +6,7 @@
<div v-if="open && !prevent" ref="container" :class="[ui.container, ui.width]"> <div v-if="open && !prevent" ref="container" :class="[ui.container, ui.width]">
<transition appear v-bind="ui.transition"> <transition appear v-bind="ui.transition">
<div :class="[ui.base, ui.background, ui.rounded, ui.shadow, ui.ring]"> <div :class="[ui.base, ui.background, ui.color, ui.rounded, ui.shadow, ui.ring]">
<slot name="text"> <slot name="text">
{{ text }} {{ text }}
</slot> </slot>