Skip to content

Commit 5d9e687

Browse files
committed
fix(badge): indigo warn state
1 parent 20eaf6c commit 5d9e687

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

projects/igniteui-angular/src/lib/core/styles/components/badge/_badge-theme.scss

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/// @param {Map} $theme - The theme used to style the component.
77
@mixin badge($theme) {
88
@include css-vars($theme);
9-
9+
$theme-variant: map.get($theme, '_meta', 'variant');
1010
$variant: map.get($theme, '_meta', 'theme');
1111

1212
%igx-badge-display {
@@ -70,10 +70,25 @@
7070

7171
%igx-badge--warn {
7272
background: color($color: 'warn');
73-
color: contrast-color($color: 'warn', $variant: 500);
7473

75-
igx-icon {
74+
@if $variant == 'indigo' and $theme-variant == 'light' {
75+
color: color($color: 'gray', $variant: 900);
76+
77+
igx-icon {
78+
color: color($color: 'gray', $variant: 900);
79+
}
80+
} @else if $variant == 'indigo' and $theme-variant == 'dark' {
81+
color: color($color: 'gray', $variant: 50);
82+
83+
igx-icon {
84+
color: color($color: 'gray', $variant: 50);
85+
}
86+
} @else {
7687
color: contrast-color($color: 'warn', $variant: 500);
88+
89+
igx-icon {
90+
color: contrast-color($color: 'warn', $variant: 500);
91+
}
7792
}
7893
}
7994

0 commit comments

Comments
 (0)