Repository navigation
[CLOV-CSS] Migrate bpk-component-journey-arrow to CSS custom properties - #4939
Conversation
|
Visit https://backpack.github.io/storybook-prs/4939 to see this build running in a browser. |
2033578 to
1f5519a
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-journey-arrow styling toward CSS custom properties (with SASS token fallbacks) and adds Storybook coverage for dark mode.
Changes:
- Updated Journey Arrow SCSS to use CSS custom properties with SASS token fallbacks.
- Added a dark-mode visual test story using
BpkDarkExampleWrapper. - Reformatted Storybook example JSX for consistency/readability.
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-journey-arrow/src/BpkJourneyArrow.stories.tsx | Adds dark-mode visual test story and reformats the example markup. |
| packages/backpack-web/src/bpk-component-journey-arrow/src/BpkJourneyArrow.module.scss | Replaces specific token usages with CSS custom properties and fallbacks for theme support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1f5519a to
2033578
Compare
|
Visit https://backpack.github.io/storybook-prs/4939 to see this build running in a browser. |
c0262cf to
37d472b
Compare
|
Visit https://backpack.github.io/storybook-prs/4939 to see this build running in a browser. |
Closes #4812 Migrates $bpk-surface-default-day and $bpk-status-danger-spot-day to var(--bpk-surface-default, ...) and var(--bpk-status-danger-spot, ...) with SASS fallbacks for dark mode support. Adds a gap comment for the hardcoded SVG fill colour in the border-image data URI, which cannot reference CSS custom properties. Adds VisualTestDark story using BpkDarkExampleWrapper. Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
37d472b to
1218ad2
Compare
|
Visit https://backpack.github.io/storybook-prs/4939 to see this build running in a browser. |
Removes the TODO comment that was incorrectly placed inside &__stop instead of alongside the border-image line, and was missing the required empty line before it (stylelint comment-empty-line-before error). Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
|
Visit https://backpack.github.io/storybook-prs/4939 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 #4812
Changes
Migrates
bpk-component-journey-arrowSCSS to CSS custom properties with SASS token fallbacks for light/dark mode support.Token migrations
tokens.$bpk-surface-default-dayvar(--bpk-surface-default, ...)tokens.$bpk-status-danger-spot-dayvar(--bpk-status-danger-spot, ...)Gap
The
border-imageSVG data URI contains a hardcoded fill colour (%23C1C7CF) that cannot reference CSS custom properties — aTODOcomment marks this gap for future resolution.Stories
Added
VisualTestDarkstory usingBpkDarkExampleWrapperwithbpkTheme: 'dark'anddark-mode-compatibletag.