mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Fixing broken responsive box background color prop and color fix (#18978)
This commit is contained in:
parent
98cb3381e6
commit
56e48a7e55
@ -376,7 +376,7 @@ $attributesToApplyExtraProperties: margin;
|
||||
@each $breakpoint, $min-width in $screen-sizes-map {
|
||||
@each $variant, $color in design-system.$color-map {
|
||||
@media screen and (min-width: $min-width) {
|
||||
&--#{$breakpoint}\background-color-#{$variant} {
|
||||
&--#{$breakpoint}\:background-color-#{$variant} {
|
||||
background-color: var($color);
|
||||
}
|
||||
}
|
||||
|
@ -606,21 +606,30 @@ export const ResponsiveProps = () => {
|
||||
>
|
||||
<Box
|
||||
padding={[4, 8]}
|
||||
backgroundColor={BackgroundColor.backgroundAlternative}
|
||||
backgroundColor={[
|
||||
BackgroundColor.backgroundAlternative,
|
||||
BackgroundColor.primaryMuted,
|
||||
]}
|
||||
borderColor={BorderColor.borderMuted}
|
||||
>
|
||||
responsive
|
||||
</Box>
|
||||
<Box
|
||||
padding={[4, 8]}
|
||||
backgroundColor={BackgroundColor.backgroundAlternative}
|
||||
backgroundColor={[
|
||||
BackgroundColor.backgroundAlternative,
|
||||
BackgroundColor.primaryMuted,
|
||||
]}
|
||||
borderColor={BorderColor.borderMuted}
|
||||
>
|
||||
props
|
||||
</Box>
|
||||
<Box
|
||||
padding={[4, 8]}
|
||||
backgroundColor={BackgroundColor.backgroundAlternative}
|
||||
backgroundColor={[
|
||||
BackgroundColor.backgroundAlternative,
|
||||
BackgroundColor.primaryMuted,
|
||||
]}
|
||||
borderColor={BorderColor.borderMuted}
|
||||
>
|
||||
example
|
||||
@ -633,7 +642,10 @@ export const ResponsiveProps = () => {
|
||||
BorderRadius.MD,
|
||||
BorderRadius.LG,
|
||||
]}
|
||||
backgroundColor={BackgroundColor.backgroundAlternative}
|
||||
backgroundColor={[
|
||||
BackgroundColor.backgroundAlternative,
|
||||
BackgroundColor.primaryMuted,
|
||||
]}
|
||||
borderColor={BorderColor.borderMuted}
|
||||
>
|
||||
Responsive Border Radius 1
|
||||
@ -646,7 +658,10 @@ export const ResponsiveProps = () => {
|
||||
BorderRadius.none,
|
||||
BorderRadius.full,
|
||||
]}
|
||||
backgroundColor={BackgroundColor.backgroundAlternative}
|
||||
backgroundColor={[
|
||||
BackgroundColor.backgroundAlternative,
|
||||
BackgroundColor.primaryMuted,
|
||||
]}
|
||||
borderColor={BorderColor.borderMuted}
|
||||
>
|
||||
Responsive Border Radius 2
|
||||
|
@ -63,7 +63,7 @@ export enum BackgroundColor {
|
||||
primaryAlternative = 'primary-alternative',
|
||||
primaryMuted = 'primary-muted',
|
||||
errorDefault = 'error-default',
|
||||
errorAlternative = 'error-Alternative',
|
||||
errorAlternative = 'error-alternative',
|
||||
errorMuted = 'error-muted',
|
||||
warningDefault = 'warning-default',
|
||||
warningAlternative = 'warning-alternative',
|
||||
|
Loading…
Reference in New Issue
Block a user