Skip to content

Commit

Permalink
fix(Tooltip): fix arrow color opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Mar 4, 2024
1 parent 95033e5 commit c5fad6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/components/tooltip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default plugin(({ addComponents, theme }) => {
[`@apply font-${config.font.family} text-xs shadow-lg`]: {},
[`@apply text-${config.font.color.light} dark:text-${config.font.color.light}`]:
{},
[`@apply bg-${config.background.light} dark:bg-${config.background.dark}`]:
[`@apply !bg-${config.background.light} dark:!bg-${config.background.dark}`]:
{},
},
[`[${tooltip}]:hover::before, [${tooltip}]:hover::after, [${tooltip}]:focus-visible::before, [${tooltip}]:focus-visible::after`]:
Expand All @@ -84,7 +84,7 @@ export default plugin(({ addComponents, theme }) => {
bottom: 'calc(100% + 8px)',
borderBottomWidth: '0',
borderTopColor: 'currentColor',
[`@apply text-${config.background.light} dark:text-${config.background.light}`]:
[`@apply !text-${config.background.light} dark:!text-${config.background.light}`]:
{},
},
[`[${tooltip}]:not([${position}])::after, [${tooltip}][${position}^='up']::after`]:
Expand All @@ -102,7 +102,7 @@ export default plugin(({ addComponents, theme }) => {
top: '100%',
borderTopWidth: '0',
borderBottomColor: 'currentColor',
[`@apply text-${config.background.light} dark:text-${config.background.dark}`]:
[`@apply !text-${config.background.light} dark:!text-${config.background.dark}`]:
{},
},
[`[${tooltip}][${position}^='down']::after`]: {
Expand All @@ -122,7 +122,7 @@ export default plugin(({ addComponents, theme }) => {
borderLeftColor: 'currentColor',
insetInlineStart: 'calc(0em - 5px)',
transform: 'translate(-0.5em, -50%)',
[`@apply text-${config.background.light} dark:text-${config.background.dark}`]:
[`@apply !text-${config.background.light} dark:!text-${config.background.dark}`]:
{},
},
[`[${tooltip}][${position}^='start']::after, [${tooltip}][${position}^='left']::after`]:
Expand All @@ -140,7 +140,7 @@ export default plugin(({ addComponents, theme }) => {
borderRightColor: 'currentColor',
insetInlineEnd: 'calc(0em - 5px)',
transform: 'translate(0.5em, -50%)',
[`@apply text-${config.background.light} dark:text-${config.background.dark}`]:
[`@apply !text-${config.background.light} dark:!text-${config.background.dark}`]:
{},
},
[`[${tooltip}][${position}^='end']::after, [${tooltip}][${position}^='right']::after`]:
Expand Down

0 comments on commit c5fad6c

Please sign in to comment.