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
{{ message }}
Repository navigation
Insights: KPI info tooltips are mouse-only — not reachable by keyboard or screen reader #588
The InfoTip tooltips on the Insights page — including the one explaining the Visibility score — only open on onMouseEnter/onMouseLeave. The trigger is a plain <span> with no tabIndex, no focus handlers, and no ARIA attributes, so keyboard and screen-reader users cannot reach any of the KPI explanations. The chart legend has the same hover-only interaction.
Evidence
page.tsx#L170-L201 — InfoTip: onMouseEnter={show} / onMouseLeave={hide} only; bare HelpCircle icon with no aria-label; portal div with no role="tooltip"
The correct pattern is in the same file: KpiCard at page.tsx#L268-L281 sets role="button", tabIndex, aria-label, and Enter/Space onKeyDown.
Suggested fix
Make the InfoTip trigger focusable (tabIndex={0}), show/hide on onFocus/onBlur in addition to hover, add an aria-label to the trigger and role="tooltip" + aria-describedby wiring to the popup. Dismissing with Escape while focused is a nice extra. Apply the same focus handling to the chart legend items.
Acceptance criteria
Tabbing to an info icon shows the tooltip; blurring or pressing Escape hides it.
Screen readers announce the tooltip content when the trigger is focused.
Activity