File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
projects/igniteui-angular/src/lib/core/styles/components/badge Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 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 {
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
You can’t perform that action at this time.
0 commit comments