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
The purpose of this task is to update EUI documentation to cover missing but important areas regarding tooltips.
Details
Disabled elements
Disabled interactive elements can't receive focus, so EuiToolTip won't trigger on keyboard navigation, only on hover.
Workarounds: use aria-disabled instead of disabled (keeps element focusable) or avoid disabling altogether if wrapping with the tooltip. Redirect to "disabled buttons" documentation if needed.
Browser tooltips vs EuiToolTip
Native title attribute tooltips are browser-styled, inaccessible on touch/mobile and inconsistently announced by screen readers.
Verdict: always prefer EuiToolTip. Never rely on title as the sole tooltip mechanism. Avoid using both at once.
disableScreenReaderOutput
By default, tooltip content is announced through aria-describedby on focus. Enable disableScreenReaderOutput only when the trigger's label already fully includes the tooltip text. This avoids repetitive screen reader output. Never enable it when the tooltip adds information beyond the trigger label.
"No interactive content" callout
Add a WCAG link. Also worth explaining why: tooltip content lives in a portal with role="tooltip" and is not keyboard-reachable. Use EuiPopover instead when interactive content is needed.
Acceptance criteria
Tooltip documentation:
is reviewed by a designer
is adjusted as per designer's feedback (if applicable) (no changes required)
goes over "tooltips on disabled elements" and workarounds
goes over browser tooltips vs EuiToolTip and when to use which
goes over disableScreenReaderOutput and when to use it
Activity