Skip to content

docs(example): add aria-labels to icon buttons - #5241

Open
mitar-drazic-ck wants to merge 1 commit into
callstack:mainfrom
mitar-drazic-ck:docs/icon-button-example-aria-labels
Open

mitar-drazic-ck wants to merge 1 commit into
callstack:mainfrom
mitar-drazic-ck:docs/icon-button-example-aria-labels

Conversation

@mitar-drazic-ck

@mitar-drazic-ck mitar-drazic-ck commented Nov 19, 2026 •

Copy link
Copy Markdown

Motivation

The icon-only buttons on the example app's Icon Button screen have no accessible name. Screen readers announce each one only as "button", and axe-core on the web reports a critical button-name violation ("Buttons must have discernible text"). Each button now has an aria-label that says what it does.

Related issue

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

  1. Run the example app on the web (yarn install, then npx expo start --web in example/).
  2. Open the Icon Button example (/icon-button).
  3. Run axe-core on the page. It reports button-name (critical).

Screenshots / Videos

No visual change.
image

Test plan

  1. Run the example app on the web and open /icon-button.
  2. Run axe-core on the page, for example with the axe DevTools extension.
  3. Check that axe reports no button-name violation.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Found potential problems with the pull request:

  • The description is too long. Please keep it under 1000 characters.

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

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