Skip to content

[EuiTooltip] Add logic to close all tooltips before showing another EuiTooltip instance #6423

@1Copenut

Description

@1Copenut

Description

@jughosta reached out to the EUI team for a way to prevent tooltips persisting on the screen after click events. This issue is being tracked in Kibana #144482.

The EUI team proposed a UX solution where we prevent two tooltips being present in the DOM. If a user toggles a tooltip, we should check for any tooltips present, close them, then reveal the new tooltip.

@constancecchen has proposed an enhancement using React.Context:

A new context/provider within EuiProvider just for tooltips, similar to how we have CurrentEuiBreakpointProvider now.

<CurrentEuiBreakpointProvider>{children}</CurrentEuiBreakpointProvider>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions