Skip to content

Commit

Permalink
fix(DesignSystem): tooltip fixed to avoid layout shift on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Oct 10, 2023
1 parent a08f82c commit a52c3dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Tooltip({ placement, overlay, children, maxWidth = 200 }: Overla
<OverlayTriggerBS
key={placement}
placement={placement}
overlay={<TooltipBS style={{ maxWidth: maxWidth }}>{overlay}</TooltipBS>}>
overlay={<TooltipBS style={{ maxWidth: maxWidth, position: 'fixed' }}>{overlay}</TooltipBS>}>
<div style={{ display: 'inline-block' }}>{children}</div>
</OverlayTriggerBS>
)
Expand Down

0 comments on commit a52c3dc

Please sign in to comment.