Skip to content

Commit

Permalink
fix(Tooltip): hardcoded colors
Browse files Browse the repository at this point in the history
  • Loading branch information
benjitrosch committed Apr 4, 2023
1 parent 74000f9 commit f2fa5ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Tooltip/Tooltip.tsx
Expand Up @@ -35,7 +35,13 @@ const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(
className,
clsx({
'tooltip-open': open,
[`tooltip-${color}`]: color,
'tooltip-primary': color === 'primary',
'tooltip-secondary': color === 'secondary',
'tooltip-accent': color === 'accent',
'tooltip-info': color === 'info',
'tooltip-success': color === 'success',
'tooltip-warning': color === 'warning',
'tooltip-error': color === 'error',
'tooltip-top': position === 'top',
'tooltip-bottom': position === 'bottom',
'tooltip-left': position === 'left',
Expand Down

0 comments on commit f2fa5ec

Please sign in to comment.