chore: removing warning alternative color from codebase#25010
chore: removing warning alternative color from codebase#25010georgewrmarshall 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. |
| [ConfirmInfoRowVariant.Critical]: Color.errorAlternative, | ||
| [ConfirmInfoRowVariant.Warning]: Color.warningAlternative, | ||
| [ConfirmInfoRowVariant.Warning]: Color.warningDefault, | ||
| }; |
| [ConfirmInfoRowVariant.Critical]: Color.errorAlternative, | ||
| [ConfirmInfoRowVariant.Warning]: Color.warningAlternative, | ||
| [ConfirmInfoRowVariant.Warning]: Color.warningDefault, | ||
| }; |
There was a problem hiding this comment.
can you show an example with an icon?
| var(--color-warning-alternative) [DEPRECATED] | ||
| var(--color-warning-muted) | ||
| var(--color-warning-inverse) | ||
| var(--color-warning-disabled) [DEPRECATED] |
There was a problem hiding this comment.
Before
before.colordocs720.mov
After
colordocs720.mov
| <Box backgroundColor={BackgroundColor.warningDefault}> | ||
| <HeaderBase | ||
| marginBottom={4} | ||
| startAccessory={ |
There was a problem hiding this comment.
unblocking: i feel like these should use brand colors instead
| <Footer backgroundColor={BackgroundColor.warningDefault}> | ||
| <ButtonPrimary block disabled> | ||
| Cancel | ||
| </ButtonPrimary> |
| 'error-inverse': --color-error-inverse, | ||
| 'error-disabled': --color-error-disabled, | ||
| 'warning-default': --color-warning-default, | ||
| 'warning-alternative': --color-warning-alternative, |
| 'warning-alternative': --color-warning-alternative, | ||
| 'warning-muted': --color-warning-muted, | ||
| 'warning-inverse': --color-warning-inverse, | ||
| 'warning-disabled': --color-warning-disabled, |
| errorInverse = 'error-inverse', | ||
| errorDisabled = 'error-disabled', | ||
| warningDefault = 'warning-default', | ||
| warningAlternative = 'warning-alternative', |
| warningAlternative = 'warning-alternative', | ||
| warningMuted = 'warning-muted', | ||
| warningInverse = 'warning-inverse', | ||
| warningDisabled = 'warning-disabled', |
| &:active { | ||
| border-color: var(--color-warning-alternative); | ||
| border-color: var(--color-warning-default); | ||
| } |
There was a problem hiding this comment.
Before
before.button.mov
After
after.buttonwarning720.mov
There was a problem hiding this comment.
shouldn't the text be colored as well?
|
|
||
| &__average { | ||
| color: var(--color-warning-alternative); | ||
| color: var(--color-warning-default); |
| errorAlternative = 'error-alternative', | ||
| errorMuted = 'error-muted', | ||
| warningDefault = 'warning-default', | ||
| warningAlternative = 'warning-alternative', |
There was a problem hiding this comment.
Same as above
| errorAlternative = 'error-alternative', | ||
| errorMuted = 'error-muted', | ||
| warningDefault = 'warning-default', | ||
| warningAlternative = 'warning-alternative', |
There was a problem hiding this comment.
Same as above
Builds ready [25bb804]
Page Load Metrics (54 ± 5 ms)
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25010 +/- ##
===========================================
- Coverage 65.71% 65.71% -0.00%
===========================================
Files 1368 1368
Lines 54388 54384 -4
Branches 14150 14150
===========================================
- Hits 35739 35735 -4
Misses 18649 18649 ☔ View full report in Codecov by Sentry. |
brianacnguyen
left a comment
There was a problem hiding this comment.
a few small comments





















Description
This pull request removes the deprecated warning colors(
warning-alternativeandwarning-disabled) in preparation for upgrading to design token v4.Related issues
Fixes: #24966
Manual testing steps
warning-alternative,warning-disabledexistsScreenshots/Recordings
All before/after screenshots and screencasts have been moved to comments for easier review. This screenshot shows no instances of warning-alternative CSS variables or enums left in the codebase
Pre-merge author checklist
Pre-merge reviewer checklist