You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EuiTooltip attached to a button scrolls off the button when parent is scrolled. This might be only happening when the anchor element is itself on a popover. As is the below snapshot, the tooltip is attached to a button where the button is inside an overlay container (bottom sheet).
Implement a prop repositionOnScroll on EuiTooltip which should reposition the tooltip when scrolled. EuiPopover already implements it, see. Also see RepositionScrollStrategy in Angular CDK Overlay.
Proposal 2:
Implement a prop hideOnScroll on EuiTooltip (and maybe also on EuiPopover) that when set to true, hides the tooltip when any scroll event happens in the scope of window. See CloseScrollStrategy in Angular CDK Overlay.
Summary
EuiTooltip attached to a button scrolls off the button when parent is scrolled. This might be only happening when the anchor element is itself on a popover. As is the below snapshot, the tooltip is attached to a button where the button is inside an overlay container (bottom sheet).
Video for reference:
Screen.Recording.2022-02-04.at.16.17.59.mov
Consumer code for reference:
Proposals 1:
Implement a prop
repositionOnScrollon EuiTooltip which should reposition the tooltip when scrolled. EuiPopover already implements it, see. Also seeRepositionScrollStrategyin Angular CDK Overlay.Proposal 2:
Implement a prop
hideOnScrollon EuiTooltip (and maybe also on EuiPopover) that when set to true, hides the tooltip when any scroll event happens in the scope of window. SeeCloseScrollStrategyin Angular CDK Overlay.Proposal 3:
Implement both 1 and 2 above.