Skip to content

Commit

Permalink
fix(Tooltip): fix right and left arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 22, 2024
1 parent 71ec122 commit 4376b60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/tooltip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`]: {},
Expand All @@ -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}`]: {},
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/components/tooltip/tooltip.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const defaultConfig = {
},
background: {
light: '[#1e293b]',
dark: '[#ec4899]',
dark: '[#4c1d95]',
},
size: {
width: {
Expand Down

0 comments on commit 4376b60

Please sign in to comment.