Repository navigation
[CLOV-CSS] Migrate bpk-component-floating-notification to CSS custom properties - #4919
Conversation
|
Visit https://backpack.github.io/storybook-prs/4919 to see this build running in a browser. |
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.
Updates bpk-component-drawer styling to use CSS custom properties (with SASS fallbacks) and adds a Storybook dark-mode example for the Drawer.
Changes:
- Migrates Drawer surface/background and divider line color to CSS custom properties with SASS fallbacks.
- Adds a new
DarkModeStorybook story wrapped inBpkDarkExampleWrapper. - Adds “gap” comments for tokens that are intentionally kept as SASS-only (e.g., duration).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/backpack-web/src/bpk-component-drawer/src/BpkDrawerContent.module.scss | Switches some SCSS token usages to CSS custom properties + fallbacks; adds “gap” annotations. |
| packages/backpack-web/src/bpk-component-drawer/src/BpkDrawer.stories.js | Adds a dark mode Drawer story using BpkDarkExampleWrapper. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Visit https://backpack.github.io/storybook-prs/4919 to see this build running in a browser. |
…properties Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
839879a to
2573325
Compare
|
Visit https://backpack.github.io/storybook-prs/4919 to see this build running in a browser. |
|
Visit https://backpack.github.io/storybook-prs/4919 to see this build running in a browser. |
Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
|
Visit https://backpack.github.io/storybook-prs/4919 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 #4840
Changes
Migrates
bpk-component-floating-notificationSCSS to CSS custom properties with SASS token fallbacks for light/dark mode support.Token migrations
tokens.$bpk-border-radius-mdvar(--bpk-radius-md, ...)tokens.$bpk-core-primary-dayvar(--bpk-core-primary, ...)tokens.$bpk-text-on-dark-dayvar(--bpk-text-on-dark, ...)tokens.$bpk-status-danger-spot-dayvar(--bpk-status-danger-spot, ...)tokens.$bpk-text-primary-inverse-dayvar(--bpk-text-inverse, ...)Gap tokens (kept as bare SASS — no CSS var equivalent)
$bpk-box-shadow-xl/$bpk-box-shadow-lg— box-shadow shorthand$bpk-duration-base— animation durationNo
themeAttributes.tsxneeded — component has no theme hooks.🤖 Generated with Claude Code