fix: storybook dark mode and component compatibility#7209
Conversation
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.
Once credits are available, reopen this pull request to trigger a review.
Docker builds report
|
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
|
Visual Regression16 screenshots compared. See report for details. |
docs/if required so people know about the feature.Changes
Contributes to Storybook infrastructure — enables component stories to render correctly in both light and dark mode.
Problem
Storybook docs pages had multiple dark mode issues:
Select,React,propTypes,Utils) crashed at runtimeSolution
.storybook/DocsContainer.jsx) — Listens toglobalsUpdatedchannel events and switches the Storybook docs theme reactively when toggling light/dark in the toolbar.storybook/stubs/utils.js) — Minimal stub forcommon/utils/utilsto break the circular dependency chain (utils → account-store → constants) that crashes webpack in Storybook. Only provides the functions legacy.jscomponents actually call (keys.isEscape,safeParseEventValue)React,propTypes,OptionalString,OptionalFunc, and all other prop-type helpers thatInput.jsand other legacy.jsfiles use without importingReactSelectto match the real app'sglobal.Select(className="react-select",classNamePrefix="react-select") so_react-select.scssdark mode selectors work.storybook/docs-theme.scss) — Overrides for.sb-anchor > div(canvas wrapper),.docblock-argstable(controls table),[role='toolbar'](toolbar), and control button/input elementsHow did you test this code?
npm run storybook🤖 Generated with Claude Code