Skip to content

Commit

Permalink
fix: tokens and props
Browse files Browse the repository at this point in the history
  • Loading branch information
kostasdano committed Oct 9, 2023
1 parent d45105d commit e8843a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const Tooltip = React.forwardRef<HTMLDivElement, TooltipProps>(
placement = 'right',
isInverted = false,
isInteractive = false,
delayIn = 100,
delayOut = 100,
delayIn = 500,
delayOut = 500,
},
ref
) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/storyUtils/TooltipShowcase/TooltipShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ const TooltipShowcase = ({
}}
>
<div>This container is custom content</div>
<Button>Hello there mate</Button>
<Button type={isInverted ? 'primary' : 'inverted'}>Hello there mate</Button>
</div>
}
isInteractive
isInverted={isInverted}
>
<Button>{buttonText}</Button>
<Button type={isInverted ? 'inverted' : 'primary'}>{buttonText}</Button>
</Tooltip>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions src/theme/tokens/components/variables/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ const tooltip = {
},
borderColor: {
default: {
value: '{sem.colors.borderColor.decorative.muted}',
value: '{sem.colors.borderColor.decorative.transparent}',
type: 'color',
description: 'Sets borderColor for tooltip',
description: 'Sets borderColor for tooltip (default variant)',
},
inverted: {
value: '{sem.colors.borderColor.decorative.transparent}',
value: '{sem.colors.borderColor.decorative.muted}',
type: 'color',
description: 'Sets borderColor for tooltip',
description: 'Sets borderColor for tooltip (inverted variant)',
},
},
boxShadow: {
Expand Down

0 comments on commit e8843a0

Please sign in to comment.