Skip to content

Commit f52c657

Browse files
committed
fix(themes): enforce foreground as a required variant
1 parent 63374df commit f52c657

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

core/src/css/palettes/dark.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ $colors: (
8686
--ion-color-#{$color-name}-contrast-rgb: #{color-to-rgb-list(map.get($value, contrast))};
8787
--ion-color-#{$color-name}-shade: #{map.get($value, shade)};
8888
--ion-color-#{$color-name}-tint: #{map.get($value, tint)};
89+
--ion-color-#{$color-name}-foreground: #{map.get($value, foreground)};
8990
}
9091
}
9192
}

core/src/css/palettes/high-contrast-dark.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ $lightest-text-color: $text-color;
113113
--ion-color-#{$color-name}-contrast-rgb: #{color-to-rgb-list(map.get($value, contrast))};
114114
--ion-color-#{$color-name}-shade: #{map.get($value, shade)};
115115
--ion-color-#{$color-name}-tint: #{map.get($value, tint)};
116+
--ion-color-#{$color-name}-foreground: #{map.get($value, foreground)};
116117
}
117118
}
118119
}

core/src/css/palettes/high-contrast.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ $lightest-text-color: #888888;
136136
--ion-color-#{$color-name}-contrast-rgb: #{color-to-rgb-list(map.get($value, contrast))};
137137
--ion-color-#{$color-name}-shade: #{map.get($value, shade)};
138138
--ion-color-#{$color-name}-tint: #{map.get($value, tint)};
139+
--ion-color-#{$color-name}-foreground: #{map.get($value, foreground)};
139140
}
140141
}
141142
}

0 commit comments

Comments
 (0)