Docs: Add small viewport stories for Preview and Source blocks#33978
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds three new small-viewport story variants across two component story files. Each story renders a component within a 320px-wide container and applies Chromatic viewport configuration, creating visual regression test cases for responsive behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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 |
Sidnioulz
left a comment
There was a problem hiding this comment.
Thanks! I'll merge after CI goes green. Do watch out for CircleCI failures; nx failures can be ignored.
Adds small viewport (320px) stories for Preview and Source doc block components, to improve Chromatic visual regression testing at narrow widths.
This was suggested by @Sidnioulz in #33961 (comment).
Changes made:
All stories wrap the component in a 320px container and set "chromatic: {viewports: [320]}" for visual snapshot testing.
Checklist
Summary by CodeRabbit