Skip to content

[EuiToolTip] Hide tooltip on programmatic focus return to the trigger #9580

@weronikaolejniczak

Description

@weronikaolejniczak

Problem

When a modal, flyout or popover closes, focus returns to the element that triggered it. If that element has an EuiToolTip, the tooltip currently re-opens - even though the user did not intentionally navigate to it. This is disruptive for mouse users who clicked to open an overlay, then dismissed it.

This also surfaces an existing unrelated WCAG gap: when the user has the mouse over a tooltip trigger and presses Tab to move focus away, the tooltip closes unconditionally in onBlur - violating SC 1.4.13 Persistent, which requires the tooltip to remain visible while the hover trigger is still active.

Proposed fix

Investigation has been done on #9549 and viable solutions have been highlighted.

No consumer changes required

The fix is fully internal to EuiToolTip. Any overlay, EUI or third-party, is handled automatically.

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions