Skip to content

Insights: KPI info tooltips are mouse-only — not reachable by keyboard or screen reader #588

Closed

Description

@gkhngyk

Problem

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"
  • _charts.tsx#L582-L603 — legend <li> with hover handlers only
  • 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.
  • Hover behavior is unchanged.

Activity

  1. added
    enhancement
    good first issue
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions