Skip to content

fix(example): add accessible names to icon-only buttons on IconButton screen (#5182) - #5195

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/icon-button-example-a11y-labels
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/icon-button-example-a11y-labels

Conversation

@EnesKartal

Copy link
Copy Markdown

Motivation

On the example app's Icon Button screen (example/src/Examples/IconButtonExample.tsx), none of the IconButton components passed an aria-label. As a result, icon-only buttons rendered without accessible text and screen readers announced them simply as "button". When evaluated with accessibility tooling such as axe-core, this raised a critical button-name violation ("Buttons must have discernible text").

This PR adds meaningful aria-labels to every IconButton in IconButtonExample.tsx, resolving the accessibility gap and providing discernible accessible names for screen reader users on web and native.

Related issue

Fixes #5182

Screenshots / Videos

N/A (Accessibility label addition)

Test plan

  1. Run the test suite: yarn test (all 54 test suites pass).
  2. Run TypeScript checks: yarn typecheck (passes without error).
  3. Run linter: yarn lint (passes without error).
  4. Run example app (yarn example) and inspect the /icon-button screen with accessibility tools / screen reader; verify each icon button announces its accessible name without axe button-name violations.

Copilot AI balanced review requested due to automatic review settings November 8, 2026 16:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Found potential problems with the pull request:

  • The description is too long. Please keep it under 1000 characters.
  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

This branch has not been deployed

No deployments
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.

Example app: icon-only IconButtons on the Icon Button screen have no accessible name

2 participants