Skip to content

fix(shell): add aria-label to theme toggle button#1

Open
lourincedaging0-commits wants to merge 1 commit into
vouchdev:masterfrom
lourincedaging0-commits:fix/theme-toggle-aria-label
Open

fix(shell): add aria-label to theme toggle button#1
lourincedaging0-commits wants to merge 1 commit into
vouchdev:masterfrom
lourincedaging0-commits:fix/theme-toggle-aria-label

Conversation

@lourincedaging0-commits

Copy link
Copy Markdown

Summary

  • The theme-toggle button in Shell.tsx was the only icon-only button in the app relying solely on title for its accessible name. Every other icon-only button (ArtifactDrawer, ChatView, PendingView) already uses aria-label. title alone isn't reliably announced by screen readers.
  • Adds aria-label="Toggle theme" alongside the existing title, matching the established pattern.

Test plan

  • npx tsc --noEmit — clean
  • npx vitest run — 102/102 passing (added an assertion in Shell.test.tsx that the button is queryable via getByRole('button', { name: /toggle theme/i }))

Every other icon-only button in the app (ArtifactDrawer, ChatView,
PendingView) exposes an accessible name via aria-label; the theme
toggle relied on title alone, which isn't reliably announced by
screen readers.
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