replace hex values with design tokens#22585
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. |
| .confirm_header { | ||
| &__wrapper { | ||
| box-shadow: 0 2px 16px 0 #0000001a; | ||
| box-shadow: var(--shadow-size-md) var(--color-shadow-default); |
There was a problem hiding this comment.
Subtle change in the lighter color
Before & After
Screen.Recording.2024-01-17.at.3.45.57.PM.mov
| base: '#037DD6', // var(--brand-colors-blue-blue500) | ||
| }, | ||
| inactiveThumb: { | ||
| base: '#6A737D', | ||
| base: '#6A737D', // var(--brand-colors-grey-grey500) | ||
| }, | ||
| active: { | ||
| base: '#F2F4F6', | ||
| hover: '#F2F4F6', | ||
| base: '#F2F4F6', // var(--brand-colors-grey-grey040) | ||
| hover: '#F2F4F6', // var(--brand-colors-grey-grey040) | ||
| }, | ||
| inactive: { | ||
| base: '#F2F4F6', | ||
| hover: '#F2F4F6', | ||
| base: '#F2F4F6', // var(--brand-colors-grey-grey040) | ||
| hover: '#F2F4F6', // var(--brand-colors-grey-grey040) |
There was a problem hiding this comment.
Since you have to pass hex values here, I am just commenting the design token variable that aligns with these colors
There was a problem hiding this comment.
All colors no longer used. See comment above
| border-color: lighten($monzo, 10%); | ||
| border-color: var(--color-error-muted); | ||
| color: var(--color-error-default); | ||
|
|
||
| &:active { | ||
| background: lighten($monzo, 55%); | ||
| background: var(--color-error-muted-pressed); |
There was a problem hiding this comment.
SettingsTab seems to no longer be used, but I am just updating the style sheet here so the deprecated colors can be fully removed. This was the last item holding it back.
There was a problem hiding this comment.
Looks like that className is used here so good to update
There was a problem hiding this comment.
Before & After
Screen.Recording.2024-01-17.at.3.45.57.PM.mov
There was a problem hiding this comment.
Subtle change in the lighter color
Before & After
Screen.Recording.2024-01-17.at.3.45.57.PM.mov
There was a problem hiding this comment.
non-blocking: I suppose there is no color prop for this component so it's not wired up to the controls.
There was a problem hiding this comment.
Ya the controls on that component and not right, but that's out of scope for this project.
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: George Marshall <george.marshall@consensys.net>
Builds ready [7120759]
Page Load Metrics (704 ± 16 ms)
Bundle size diffs
|












Description
Replace static hex values to a token from design-tokens that best matches. If unavailable, a temporary file has been set up for any new tokens needed but not yet provided by the design-tokens package.
Related issues
Fixes: #22363
Manual testing steps
Screenshots/Recordings
See code commentsBefore
After
Pre-merge author checklist
Pre-merge reviewer checklist