chore: removing deprecated button color css variables#25125
chore: removing deprecated button color css variables#25125georgewrmarshall merged 2 commits intodevelopfrom
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
| box-shadow: | ||
| var(--shadow-size-sm) | ||
| var(--color-primary-shadow); |
| box-shadow: | ||
| var(--shadow-size-sm) | ||
| var(--color-error-shadow); |
| var(--color-error-shadow); | ||
| } | ||
|
|
||
| &:active { |
There was a problem hiding this comment.
Shadows for the ButtonPrimary component work as expected
Before
before.primary720.mov
After
after.primary720.mov
| box-shadow: | ||
| var(--shadow-size-sm) | ||
| var(--color-error-shadow); | ||
| } |
There was a problem hiding this comment.
Before
Shadows for the ButtonSecondary component work as expected
Before
before.secondary720.mov
After
after.secondary.mov
| boxShadow: 'var(--shadow-size-sm) var(--color-error-shadow)', | ||
| backgroundColor: 'var(--color-error-default)', | ||
| color: 'var(--color-error-inverse)', | ||
| }} |
There was a problem hiding this comment.
Updating shadow docs: there will be a future update where we change:
--color-error-shadowto--color-shadow-error--color-primary-shadowto--color-shadow-primary
But that will happen in the PR that upgrades to design tokens v4.
Before
before.shadows720.mov
After
after.shadows720.mov
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25125 +/- ##
========================================
Coverage 65.66% 65.66%
========================================
Files 1359 1359
Lines 54014 54014
Branches 14015 14015
========================================
Hits 35464 35464
Misses 18550 18550 ☔ View full report in Codecov by Sentry. |
| height: 100, | ||
| backgroundColor: 'var(--color-primary-default)', | ||
| boxShadow: 'var(--shadow-size-lg) var(--color-primary-shadow', | ||
| boxShadow: 'var(--shadow-size-lg) var(--color-primary-shadow)', |
Builds ready [ce1b375]
Page Load Metrics (134 ± 167 ms)
Bundle size diffs
|


Description
This pull request removes the deprecated button component colors in preparation for upgrading to design token v4.
Related issues
Fixes: #24965
Manual testing steps
yarn storybookButtonPrimaryandButtonSecondaryScreenshots/Recordings
Before/After scereenshots/recordings in code comments for easier review and context
Pre-merge author checklist
Pre-merge reviewer checklist