We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d05513 commit da4e069Copy full SHA for da4e069
core/src/themes/functions.color.scss
@@ -39,6 +39,13 @@
39
40
$value: map.get($values, $variation);
41
42
+ // TODO(): this can be removed when foreground is required
43
+ // Fallback to "base" variant when "foreground" variant is undefined
44
+ @if ($variation == foreground and $value == null) {
45
+ $variation: base;
46
+ $value: map.get($values, $variation);
47
+ }
48
+
49
// If the color requested is subtle we return `--ion-color-{color}-subtle-contrast`,
50
// otherwise we return `--ion-color-{color}-contrast`.
51
$variable: if($subtle, "--ion-color-#{$name}-subtle-#{$variation}", "--ion-color-#{$name}-#{$variation}");
0 commit comments