Skip to content

refactor(dashboard): add Heatmap tooltip accessibility β€” keyboard supportΒ #354

@JhaSourav07

Description

@JhaSourav07

🧩 Background

components/dashboard/Heatmap.tsx shows tooltips on mouseenter/mouseleave events only. Keyboard-only and touch users cannot see contribution details for individual days.

🎯 Objective

Add onFocus/onBlur handlers to the heatmap cells so tooltips appear on keyboard focus.

πŸ“ Files to touch

  • components/dashboard/Heatmap.tsx

πŸ› οΈ Implementation steps

  • Add tabIndex={0} and role="gridcell" to each day cell.
  • Attach onFocus β†’ show tooltip, onBlur β†’ hide tooltip.
  • Add aria-label with the contribution count string.

βœ… Definition of done

  • Cells are keyboard-focusable.
  • Tooltip appears on focus.
  • aria-label is set.
  • No regressions in existing tests.

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions