MOBILE-3615 dark: Fix darkmode flip colors
parent
d17da64a31
commit
f4ad5c7eea
|
@ -98,7 +98,7 @@
|
|||
// Generates the color classes and variables based on the
|
||||
// colors map
|
||||
|
||||
@mixin generate-color($color-name) {
|
||||
@mixin generate-color($color-name, $colors) {
|
||||
$value: map-get($colors, $color-name);
|
||||
|
||||
$base: map-get($value, base);
|
||||
|
|
|
@ -132,15 +132,7 @@ $colors: (
|
|||
|
||||
// Just swipe light and dark.
|
||||
$colors-dark: (
|
||||
primary: map-get($colors, primary),
|
||||
secondary: map-get($colors, secondary),
|
||||
tertiary: map-get($colors, tertiary),
|
||||
success: map-get($colors, success),
|
||||
warning: map-get($colors, warning),
|
||||
danger: map-get($colors, danger),
|
||||
info: map-get($colors, info),
|
||||
light: map-get($colors, dark),
|
||||
medium: map-get($colors, medium),
|
||||
dark: map-get($colors, light),
|
||||
) !default;
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
--dark: #{$light};
|
||||
|
||||
@each $color-name, $value in $colors-dark {
|
||||
@include generate-color($color-name);
|
||||
@include generate-color($color-name, $colors-dark);
|
||||
}
|
||||
|
||||
--ion-tab-bar-background: #1f1f1f;
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
--medium: #{$medium};
|
||||
|
||||
@each $color-name, $value in $colors {
|
||||
@include generate-color($color-name);
|
||||
@include generate-color($color-name, $colors);
|
||||
}
|
||||
|
||||
// Accessibility vars.
|
||||
|
|
Loading…
Reference in New Issue