Skip to content

Commit

Permalink
fix: decreased delay time of tooltips (#1923)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline authored Oct 17, 2023
2 parents b416a31 + 2d0dcc0 commit fc50edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/atoms/Tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Tooltip = ({ children, content, className, direction }: TooltipProps): JSX
const { Portal, Root, Content, Trigger, Arrow } = TooltipPrimitive;

return (
<Root>
<Root delayDuration={300}>
<Trigger asChild>
<div>{children}</div>
</Trigger>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function RowTooltip({
}) {
const labels = Object.keys(dataLabels);
return (
<Tooltip.Root>
<Tooltip.Root delayDuration={300}>
<Tooltip.Trigger asChild>{children}</Tooltip.Trigger>
<Tooltip.Portal>
<Tooltip.Content sideOffset={-10} align="center" collisionPadding={10} side={"bottom"} avoidCollisions>
Expand Down

0 comments on commit fc50edf

Please sign in to comment.