Skip to content

Add aria-label attributes to icon-only buttons for accessibility #5

Description

@coderanik

Description

Many icon-only <button> elements across the app use the title attribute but lack aria-label. While title provides a tooltip, it is not reliably read by screen readers. Adding aria-label ensures all users can understand button purposes.

Locations (key files)

  • frontend/src/components/ActivityBar.tsx:38-75 — 7 buttons
  • frontend/src/components/Sidebar.tsx — file items, AI panel action buttons
  • frontend/src/components/PaneHeader.tsx:34-40
  • frontend/src/components/ShareModal.tsx:87-92,112-135,148-154,170-180,186-191
  • frontend/src/components/Titlebar.tsx:89-117
  • frontend/src/components/UserDropdown.tsx:134-164

Suggested Fix

For each <button> that contains only an icon (no visible text label), add aria-label={...} with the same descriptive text currently in title. Example:

<button title="Settings" aria-label="Settings">

Difficulty: Easy

Estimated Time: 45 minutes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions