Skip to content

Commit

Permalink
fix(SegmentedSwitch): errorForm tooltip offset (#3877)
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Jun 12, 2023
1 parent 6b34b90 commit 032b93f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/orbit-components/src/SegmentedSwitch/index.tsx
Expand Up @@ -68,12 +68,11 @@ const SegmentedSwitch = ({
}, [showTooltip, hasTooltip, setTooltipShown]);

return (
<StyledWrapper spaceAfter={spaceAfter} data-test={dataTest} $maxWidth={maxWidth}>
<StyledWrapper spaceAfter={spaceAfter} data-test={dataTest} $maxWidth={maxWidth} ref={labelRef}>
{label && (
<FormLabel
help={!!help}
error={!!error}
labelRef={labelRef}
onMouseEnter={() => setTooltipShownHover(true)}
onMouseLeave={() => setTooltipShownHover(false)}
>
Expand Down

0 comments on commit 032b93f

Please sign in to comment.