Skip to content

Commit

Permalink
fix(Tooltip): add color in config
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 21, 2023
1 parent e2f7d82 commit 1b03b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/runtime/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ const tooltip = {
container: 'z-20',
width: 'max-w-xs',
background: 'bg-white dark:bg-gray-900',
color: 'text-gray-900 dark:text-white',
shadow: 'shadow',
rounded: 'rounded',
ring: 'ring-1 ring-gray-200 dark:ring-gray-800',
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/overlays/Tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div v-if="open && !prevent" ref="container" :class="[ui.container, ui.width]">
<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">
{{ text }}
</slot>
Expand Down

0 comments on commit 1b03b8a

Please sign in to comment.