Skip to content

Commit

Permalink
feat: add a prop to the tooltip component for collision padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikari-Shinji-re authored and RanGojo committed Nov 4, 2024
1 parent 5ce4873 commit f7dae29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions widget/ui/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function Tooltip(props: PropsWithChildren<TooltipPropTypes>) {
styles,
align,
alignOffset,
collisionPadding,
} = props;

return (
Expand All @@ -36,6 +37,7 @@ export function Tooltip(props: PropsWithChildren<TooltipPropTypes>) {
align={align}
side={side}
sideOffset={sideOffset}
collisionPadding={collisionPadding}
collisionBoundary={container}>
<TooltipTypography
css={styles?.content}
Expand Down
1 change: 1 addition & 0 deletions widget/ui/src/components/Tooltip/Tooltip.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export interface TooltipPropTypes {
};
align?: RadixTooltipContentProps['align'];
alignOffset?: RadixTooltipContentProps['alignOffset'];
collisionPadding?: RadixTooltipContentProps['collisionPadding'];
}

0 comments on commit f7dae29

Please sign in to comment.