chore: add a11y addon for storybook in form component#18818
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughStorybook config for the form-component library adds accessibility and Chromatic addons, preview parameters enable autodocs, package.json is updated for the addon and storybook version, and Button stories receive a default onClick handler via Storybook's test fn. ChangesStorybook addon and preview setup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@libs/form-component/package.json`:
- Line 32: Update Storybook dependency pinning to a single fixed version: change
the dependency entry for "`@storybook/addon-a11y`" from "^10.2.16" to "10.2.16"
and update the root "storybook" dependency from "^10.2.11" to "10.2.16" so all
`@storybook/`* packages are consistently pinned to 10.2.16; modify the
package.json entries for "`@storybook/addon-a11y`" and "storybook" accordingly and
run your package manager to lock the changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: e0840065-4c43-46b6-9c68-6ca2729a1739
⛔ Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (4)
libs/form-component/.storybook/main.tslibs/form-component/.storybook/preview.tsxlibs/form-component/package.jsonlibs/form-component/src/app-components/Button/Button.stories.tsx
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18818 +/- ##
==========================================
+ Coverage 95.71% 95.84% +0.12%
==========================================
Files 2587 3018 +431
Lines 33007 39575 +6568
Branches 4080 4849 +769
==========================================
+ Hits 31593 37931 +6338
- Misses 1069 1230 +161
- Partials 345 414 +69 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
lassopicasso
left a comment
There was a problem hiding this comment.
Very nice features to the storybook 👏
Description
Added the accessibility add-on to storybook of form-component library
With this add on, with get an additional panel with shows accessibility validations and errors

Also took the liberty to add two more things :
Summary by CodeRabbit
New Features
Chores