Skip to content

fix: add aria-label to icon-only buttons and links (#311)#415

Open
maxachis wants to merge 1 commit intodevfrom
issue/311-aria-labels-for-icons
Open

fix: add aria-label to icon-only buttons and links (#311)#415
maxachis wants to merge 1 commit intodevfrom
issue/311-aria-labels-for-icons

Conversation

@maxachis
Copy link
Copy Markdown
Contributor

Summary

Closes #311

Adds aria-label attributes to icon-only interactive elements (buttons and links) so
screen readers can announce their purpose. Also marks a decorative SVG as
aria-hidden.

Changes

Icon-only buttons/links (high priority):

  • APIKey.vuearia-label="Dismiss" on close button; dynamic :aria-label ("Copy API key" / "Copied") on copy button
  • TypeaheadSelected.vuearia-label="Remove" on minus button
  • DataSourceMapSidebar.vuearia-label="Go back" on back button
  • _CourtWarrantMapSidebar.vuearia-label="Go back" on back button
  • Modal.vuearia-label="Close" on X button

Decorative/supplemental (medium priority):

  • ZoomableImage.vuearia-hidden="true" on decorative magnifier SVG
  • index.vuearia-label="Terminology definition" on icon-only link

Test plan

  • Run unit tests (npm run test:unit) — all 30 pass
  • Navigate to Profile page → verify dismiss and copy buttons are announced by
    screen reader
  • Navigate to Search map → verify back button is announced
  • Navigate to Court Warrant map → verify back button is announced
  • Navigate to Annotate page → verify modal close button and zoom hint SVG are
    correct
  • Navigate to Home page → verify terminology link is announced

🤖 Generated with Claude Code

Adds accessible labels to interactive elements that only contain icons,
making them usable by screen readers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant