diff --git a/src/components/tooltip/tooltip.tsx b/src/components/tooltip/tooltip.tsx index 2eb141f..31e3297 100644 --- a/src/components/tooltip/tooltip.tsx +++ b/src/components/tooltip/tooltip.tsx @@ -47,6 +47,7 @@ interface TooltipProps { arrowColor?: string; safeZone?: number; zIndex?: number; + mainAxis?: boolean; } export const Tooltip: FC = ({ @@ -61,6 +62,7 @@ export const Tooltip: FC = ({ placement = 'bottom', arrowColor = 'rgba(34, 34, 34, 0.91)', dataAutomationId, + mainAxis = true, children, }): ReactElement => { const [isOpened, setOpened] = useState(false); @@ -75,6 +77,7 @@ export const Tooltip: FC = ({ mainAxis: safeZone + TRIANGLE_HEIGHT, }), flip({ + mainAxis, fallbackAxisSideDirection: 'start', fallbackPlacements: placements, }),