From 119645d813f1fe4284058cb91467313267feaada Mon Sep 17 00:00:00 2001 From: Daniel Sil Date: Thu, 17 Oct 2024 11:11:41 +0200 Subject: [PATCH] fixup! chore(ErrorFormTooltip): migrate from react-popper to floating-ui --- .../src/ErrorFormTooltip/Tooltip/index.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/orbit-components/src/ErrorFormTooltip/Tooltip/index.tsx b/packages/orbit-components/src/ErrorFormTooltip/Tooltip/index.tsx index 1337fb0b20..428935ceb4 100644 --- a/packages/orbit-components/src/ErrorFormTooltip/Tooltip/index.tsx +++ b/packages/orbit-components/src/ErrorFormTooltip/Tooltip/index.tsx @@ -23,7 +23,7 @@ const ErrorFormTooltip = ({ const contentRef = React.useRef(null); const { isDesktop } = useMediaQuery(); - const { refs, floatingStyles, placement } = useFloating({ + const { refs, floatingStyles } = useFloating({ placement: "top-start", whileElementsMounted: autoUpdate, onOpenChange: onShown, @@ -62,8 +62,6 @@ const ErrorFormTooltip = ({ }; }, [onShown, isHelp, helpClosable, refs.floating]); - const isVertical = placement === "top-start" || placement === "top-end" ? "bottom" : "top"; - const cssVars = { "--error-form-tooltip-position": floatingStyles.position, "--error-form-tooltip-top": floatingStyles.top, @@ -94,8 +92,7 @@ const ErrorFormTooltip = ({ >