Repository navigation
[CLOV-CSS] Migrate bpk-component-chat-notification to CSS custom properties - #4938
Conversation
|
Visit https://backpack.github.io/storybook-prs/4938 to see this build running in a browser. |
…erties Migrates border-radius, background, color, fill, padding and gap to CSS custom properties with SASS token fallbacks. Adds VisualTestDarkMode story using BpkDarkExampleWrapper. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
2bb79d2 to
9378d11
Compare
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-chat-notification styling to CSS custom properties (with Sass token fallbacks) and adds a Storybook visual test to validate dark mode rendering.
Changes:
- Switched SCSS tokens to
var(--token, sass-fallback)for radius, colors, spacing, and icon fill. - Added a
VisualTestDarkModeStorybook story usingBpkDarkExampleWrapper.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/backpack-web/src/bpk-component-chat-notification/src/BpkChatNotification.stories.tsx | Adds a dark-mode visual test story via BpkDarkExampleWrapper. |
| packages/backpack-web/src/bpk-component-chat-notification/src/BpkChatNotification.module.scss | Replaces Sass tokens with CSS custom properties (with Sass fallbacks) for theming support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 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.
|
Visit https://backpack.github.io/storybook-prs/4938 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 #4824
Changes
Migrates
bpk-component-chat-notificationSCSS to CSS custom properties with SASS token fallbacks for light/dark mode support.Token migrations
border-radiustokens.$bpk-border-radius-mdvar(--bpk-radius-md, tokens.$bpk-border-radius-md)backgroundtokens.$bpk-core-primary-dayvar(--bpk-core-primary, tokens.$bpk-core-primary-day)colortokens.$bpk-text-on-dark-dayvar(--bpk-text-on-dark, tokens.$bpk-text-on-dark-day)filltokens.$bpk-text-on-dark-dayvar(--bpk-text-on-dark, tokens.$bpk-text-on-dark-day)paddingtokens.bpk-spacing-base()var(--bpk-spacing-base, tokens.bpk-spacing-base())gaptokens.bpk-spacing-md()var(--bpk-spacing-md, tokens.bpk-spacing-md())Stories
Added
VisualTestDarkModestory usingBpkDarkExampleWrapper.Test plan