Skip to content

Commit

Permalink
fix(Tooltip): positions string interpolation broken (#235)
Browse files Browse the repository at this point in the history
Replaced the string interpolation so that tailwind
can capture the classnames correctly
  • Loading branch information
Pr0dt0s committed Oct 31, 2022
1 parent 96070ac commit e2e6b10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Tooltip/Tooltip.tsx
Expand Up @@ -36,7 +36,10 @@ const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(
clsx({
'tooltip-open': open,
[`tooltip-${color}`]: color,
[`tooltip-${position}`]: position,
'tooltip-top': position === 'top',
'tooltip-bottom': position === 'bottom',
'tooltip-left': position === 'left',
'tooltip-right': position === 'right',
})
)

Expand Down

0 comments on commit e2e6b10

Please sign in to comment.