Skip to content

Commit

Permalink
EPMRPP-95859 || Fix the tooltip on the sidebar's popover (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO authored Oct 29, 2024
1 parent cc7e386 commit cdd75b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ interface TooltipProps {
arrowColor?: string;
safeZone?: number;
zIndex?: number;
mainAxis?: boolean;
}

export const Tooltip: FC<TooltipProps> = ({
Expand All @@ -61,6 +62,7 @@ export const Tooltip: FC<TooltipProps> = ({
placement = 'bottom',
arrowColor = 'rgba(34, 34, 34, 0.91)',
dataAutomationId,
mainAxis = true,
children,
}): ReactElement => {
const [isOpened, setOpened] = useState(false);
Expand All @@ -75,6 +77,7 @@ export const Tooltip: FC<TooltipProps> = ({
mainAxis: safeZone + TRIANGLE_HEIGHT,
}),
flip({
mainAxis,
fallbackAxisSideDirection: 'start',
fallbackPlacements: placements,
}),
Expand Down

0 comments on commit cdd75b9

Please sign in to comment.