mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 05:08:03 +01:00
fix(Tooltip): add color in config
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user