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 = ({ >