Skip to content

chore(storybook): add accessible label to Input story - #609

Merged
ggdaltoso merged 1 commit into
React95:masterfrom
parthchilwerwar:chore/input-story-label
Nov 11, 2026
Merged

ggdaltoso merged 1 commit into
React95:masterfrom
parthchilwerwar:chore/input-story-label

Conversation

@parthchilwerwar

Copy link
Copy Markdown
Contributor

Closes #555

This picks up #564, which was closed waiting on a rebase.

The Input "Simple" story renders an <input> with no accessible name, so axe's label rule flags it. I added 'aria-label': 'Sample text input' to the story's args, and the play function now finds the field by that name, as suggested in #564.

It's committed as chore(storybook) so it doesn't publish a new @react95/core.

What I ran:

  • With a11y.test set to 'error' in packages/core/.storybook/preview.js (not committed), vitest run --config=vitest.config.mjs input.stories fails on master with "Form elements must have labels" and passes on this branch.
  • The same test with the default 'todo' setting passes.
  • tsc -p ./tsconfig.json --noEmit in packages/core is clean, and the pre-commit and pre-push hooks passed.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 07:43
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

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.

@ggdaltoso

Copy link
Copy Markdown
Member

Thanks, @parthchilwerwar!

The Input story now has an accessible name, and the play finds the field by it. 🎉

@nx-cloud

nx-cloud Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit be9965c

Command Status Duration Result
nx affected -t lint,test,build,test-storybook,b... ✅ Succeeded 3m 45s View ↗
nx-cloud record -- yarn nx format:check ✅ Succeeded 1s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-11 12:04:07 UTC

@ggdaltoso
ggdaltoso merged commit 0b22cbb into React95:master Nov 11, 2026
8 checks passed
@ggdaltoso

Copy link
Copy Markdown
Member

@all-contributors please add @parthchilwerwar for a11y

@allcontributors

Copy link
Copy Markdown
Contributor

@ggdaltoso

I've put up a pull request to add @parthchilwerwar! 🎉

@parthchilwerwar

Copy link
Copy Markdown
Contributor Author

Thanks @ggdaltoso for the quick review and merge, and for adding me to the contributors list! Really appreciate it.

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.

Input: field without a label in the story

3 participants