From 4376b6011dc1611badf157d543f2afc3c068a272 Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Fri, 23 Feb 2024 00:41:55 +0100 Subject: [PATCH] fix(Tooltip): fix right and left arrows --- src/plugins/components/tooltip/index.ts | 8 ++++---- src/plugins/components/tooltip/tooltip.config.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/components/tooltip/index.ts b/src/plugins/components/tooltip/index.ts index 54c5eb2..d971c59 100644 --- a/src/plugins/components/tooltip/index.ts +++ b/src/plugins/components/tooltip/index.ts @@ -125,8 +125,8 @@ export default plugin(({ addComponents, theme }) => { [`[${tooltip}][${position}^='start']::before, [${tooltip}][${position}^='left']::before`]: { top: '50%', - borderEndWidth: '0', - borderStartColor: 'currentColor', + borderRightWidth: '0', + borderLeftColor: 'currentColor', insetInlineStart: 'calc(0em - 5px)', transform: 'translate(-0.5em, -50%)', [`@apply text-${config.background.light}`]: {}, @@ -143,8 +143,8 @@ export default plugin(({ addComponents, theme }) => { [`[${tooltip}][${position}^='end']::before, [${tooltip}][${position}^='right']::before`]: { top: '50%', - borderStartWidth: '0', - borderEndColor: 'currentColor', + borderLefttWidth: '0', + borderRightColor: 'currentColor', insetInlineEnd: 'calc(0em - 5px)', transform: 'translate(0.5em, -50%)', [`@apply text-${config.background.light}`]: {}, diff --git a/src/plugins/components/tooltip/tooltip.config.ts b/src/plugins/components/tooltip/tooltip.config.ts index 114325e..03770bd 100644 --- a/src/plugins/components/tooltip/tooltip.config.ts +++ b/src/plugins/components/tooltip/tooltip.config.ts @@ -10,7 +10,7 @@ export const defaultConfig = { }, background: { light: '[#1e293b]', - dark: '[#ec4899]', + dark: '[#4c1d95]', }, size: { width: {