Skip to content

Commit aa73e04

Browse files
committed
style(chip): Change chip disabled state colors in the context of the grid for material light theme
1 parent b2b8fbd commit aa73e04

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-theme.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
}
220220

221221
$theme: digest-schema($grid-schema);
222+
$meta: map.get($theme, '_meta');
222223

223224
@if not($cell-selected-within-text-color) and $cell-selected-within-background {
224225
$cell-selected-within-text-color: text-contrast($cell-selected-within-background);
@@ -550,6 +551,10 @@
550551

551552
cell-selected-within-background: $cell-selected-within-background,
552553
cell-selected-within-text-color: $cell-selected-within-text-color,
554+
555+
_meta: map.merge(if($meta, $meta, ()), (
556+
theme-variant: map.get($schema, '_meta', 'variant')
557+
)),
553558
));
554559
}
555560

@@ -570,6 +575,7 @@
570575
@include scale-in-ver-center();
571576

572577
$variant: map.get($theme, variant);
578+
$theme-variant: map.get($theme, '_meta', 'theme-variant');
573579
$bootstrap-theme: $variant == 'bootstrap';
574580
$not-bootstrap-theme: $variant != 'bootstrap';
575581

@@ -695,8 +701,13 @@
695701
}
696702

697703
%grid-display {
698-
--igx-chip-disabled-background: #{color($color: 'gray', $variant: 300)};
699-
--igx-chip-disabled-border-color: #{color($color: 'gray', $variant: 300)};
704+
@if $variant == 'material' {
705+
@if $theme-variant == 'light' {
706+
--igx-chip-disabled-background: #{color($color: 'gray', $variant: 300)};
707+
--igx-chip-disabled-border-color: #{color($color: 'gray', $variant: 300)};
708+
}
709+
}
710+
700711
--igx-tree-indent-size: #{rem(24px)};
701712

702713
position: relative;

0 commit comments

Comments
 (0)