diff --git a/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx b/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx index 14afce0869..9d8a3b7cd4 100644 --- a/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx +++ b/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx @@ -72,12 +72,12 @@ const TooltipAdvancedFloating = () => { return (
-

+

Try scrolling the frame or resizing the window to see how the Tooltip behaves. The Floating UI library is trying to keep the Tooltip in the viewport and it is also flipping, shifting and resizing the Tooltip when it is not possible to keep it in the viewport.

- + setFlip(!flip)} /> { setShift(!shift)} /> setSize(!size)} /> - +
diff --git a/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx b/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx index 00e9839b6c..a893b8adfa 100644 --- a/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx +++ b/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx @@ -142,7 +142,7 @@ const TooltipPlacements = () => { /> -
+
{ enableFlipping={false} > - + Click
the dots!
diff --git a/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx b/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx index 9ae4fff596..b9cbfa0bc3 100644 --- a/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx +++ b/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx @@ -86,7 +86,7 @@ const TooltipWithHooks = (args: SpiritTooltipProps) => { return (
diff --git a/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx b/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx index 18e5288a86..58bf2e4cb7 100644 --- a/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx +++ b/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx @@ -79,7 +79,7 @@ const UncontrolledTooltipWithHooks = (args: Omit return (
diff --git a/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipAdvancedFloating.twig b/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipAdvancedFloating.twig index c4044cdb1e..66a7026fbc 100644 --- a/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipAdvancedFloating.twig +++ b/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipAdvancedFloating.twig @@ -1,16 +1,16 @@ -

+

Try scrolling the frame or resizing the window to see how the Tooltip behaves. The Floating UI library is trying to keep the Tooltip in the viewport and it is also flipping, shifting and resizing the Tooltip when it is not possible to keep it in the viewport.

- + - +