Repository navigation
[CLOV-CSS] Migrate bpk-component-collapsible to CSS custom properties - #4953
Conversation
Closes #4809 Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Migrates bpk-component-collapsible styling to CSS custom properties (with SASS token fallbacks) and adds a Storybook dark mode example to validate light/dark behavior.
Changes:
- Switched key text colors to
var(--token, sass-fallback)patterns for themeability. - Added a Storybook “DarkMode” story using a dark example wrapper.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/backpack-web/src/bpk-component-collapsible/src/BpkCollapsible.stories.tsx | Adds a dark mode Storybook example and imports a dark wrapper utility. |
| packages/backpack-web/src/bpk-component-collapsible/src/BpkCollapsible.module.scss | Replaces hard-coded SASS color tokens with CSS custom properties + SASS fallbacks. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| // @ts-expect-error -- bpk-storybook-utils has no type declarations | ||
| import { BpkDarkExampleWrapper } from 'bpk-storybook-utils'; |
There was a problem hiding this comment.
Outdated — this comment refers to a file/section that's no longer part of the current diff (superseded by a later commit on this branch). No action needed here.
| /* gap: animation duration */ | ||
| $collapsible-duration: tokens.$bpk-duration-sm; |
There was a problem hiding this comment.
Outdated — this comment refers to a file/section that's no longer part of the current diff (superseded by a later commit on this branch). No action needed here.
|
Visit https://backpack.github.io/storybook-prs/4953 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/4953 to see this build running in a browser. |
|
Token value audit — verified every new CSS var introduced in this PR against
All new/old values match — no visual regression risk from this migration. |
Closes #4809
Migrates bpk-component-collapsible SCSS to CSS custom properties with SASS fallbacks for light/dark mode support.