Skip to content

a11y: add aria-label to icon-only buttons#219

Merged
garrity-miepub merged 1 commit intomainfrom
accessibility/a11y-button-labels
May 2, 2026
Merged

a11y: add aria-label to icon-only buttons#219
garrity-miepub merged 1 commit intomainfrom
accessibility/a11y-button-labels

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

  • OnboardingWizard: Back/Next buttons (icon-only on mobile)
  • ServiceCard: Delete/Edit buttons (had title only)
  • NotificationCenter: Dismiss × button
  • AuthDialog: 3 password visibility toggle buttons
  • AIChat: Clear chat button (had title only)
  • CommandPalette: Clear search button
  • Sidebar: Collapsed nav items (had title only)

Fixes button-name violations in ~20 stories.

- OnboardingWizard: Back/Next buttons (icon-only on mobile)
- ServiceCard: Delete/Edit buttons (had title only)
- NotificationCenter: Dismiss × button
- AuthDialog: 3 password visibility toggle buttons
- AIChat: Clear chat button (had title only)
- CommandPalette: Clear search button
- Sidebar: Collapsed nav items (had title only)

Fixes button-name violations in ~20 stories.
Copilot AI review requested due to automatic review settings May 2, 2026 01:11
@garrity-miepub garrity-miepub marked this pull request as ready for review May 2, 2026 01:11
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2c7c877
Status: ✅  Deploy successful!
Preview URL: https://b70ba671.ui-6d0.pages.dev
Branch Preview URL: https://accessibility-a11y-button-la.ui-6d0.pages.dev

View logs

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves accessibility across the component library by adding accessible names (aria-label) to icon-only buttons (and collapsed navigation items), addressing “button-name” violations in Storybook.

Changes:

  • Add conditional aria-label to collapsed Sidebar nav group/item triggers.
  • Add aria-label to various icon-only action buttons (delete/edit, dismiss, clear search/chat).
  • Add aria-label to onboarding navigation buttons and password visibility toggles.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/components/Sidebar/Sidebar.tsx Adds conditional aria-label for collapsed nav group/item controls.
src/components/ServiceCard/ServiceCard.tsx Adds aria-label to icon-only delete/edit action buttons.
src/components/OnboardingWizard/OnboardingWizard.tsx Adds aria-label to Back/Next buttons for mobile icon-only rendering.
src/components/NotificationCenter/NotificationCenter.tsx Adds aria-label to the dismiss (×) button.
src/components/CommandPalette/CommandPalette.tsx Adds aria-label to the clear-search (X) button.
src/components/AuthDialog/AuthDialog.tsx Adds aria-label to password visibility toggle buttons.
src/components/AI/AIChat.tsx Adds aria-label to the clear-chat button.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/AuthDialog/AuthDialog.tsx
Comment thread src/components/NotificationCenter/NotificationCenter.tsx
Comment thread src/components/AuthDialog/AuthDialog.tsx
Comment thread src/components/AuthDialog/AuthDialog.tsx
@garrity-miepub garrity-miepub merged commit 38a04b6 into main May 2, 2026
14 checks passed
@garrity-miepub garrity-miepub deleted the accessibility/a11y-button-labels branch May 2, 2026 01:28
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.

2 participants