Skip to content

Commit c2a6e60

Browse files
committed
build(angular-material-sample): resolve issues
1 parent a306f13 commit c2a6e60

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/app/theming/angular/angular-sample.component.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use 'sass:map';
12
@use '@angular/material' as mat;
23
@use '../../../variables' as *;
34
@include mat.core();
@@ -18,9 +19,9 @@ $saturations: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400
1819
$contrast: ();
1920
$result: ();
2021
@each $saturation in $saturations {
21-
$shade: map-merge($shade, ($saturation: color($palette, $color, $saturation)));
22-
$contrast: map-merge($contrast, ($saturation: color($palette, $color, #{$saturation}-contrast)));
23-
$result: map-merge($shade, (contrast: $contrast));
22+
$shade: map.merge($shade, ($saturation: color($palette, $color, $saturation)));
23+
$contrast: map.merge($contrast, ($saturation: color($palette, $color, #{$saturation}-contrast)));
24+
$result: map.merge($shade, (contrast: $contrast));
2425
}
2526

2627
@return $result;
@@ -210,16 +211,16 @@ igx-expansion-panel-body {
210211

211212
.mat-mdc-slider.secondary .mdc-slider__track--inactive,
212213
.mat-mdc-slider.secondary .mdc-slider__thumb-knob {
213-
background-color: color($custom-mat-light-theme, 'secondary');
214+
background-color: color($custom-mat-light-theme, 'accent');
214215
}
215216

216217
.mat-mdc-slider.secondary .mdc-slider__track--active_fill,
217218
.mat-mdc-slider.secondary .mdc-slider__thumb-knob {
218-
border-color: color($custom-mat-light-theme, 'secondary');
219+
border-color: color($custom-mat-light-theme, 'accent');
219220
}
220221

221222
.mat-mdc-slider.secondary .mat-mdc-slider-visual-thumb .mat-ripple > * {
222-
background-color: color($custom-mat-light-theme, 'secondary');
223+
background-color: color($custom-mat-light-theme, 'accent');
223224
opacity: .12;
224225
}
225226

@@ -229,7 +230,7 @@ igx-expansion-panel-body {
229230

230231
.mat-mdc-form-field-focus-overlay,
231232
.mdc-text-field--filled:not(.mdc-text-field--disabled) {
232-
background-color: color($custom-mat-light-theme, 'surface');
233+
background-color: color($igx-light-palette, 'surface');
233234
}
234235
}
235236
}

0 commit comments

Comments
 (0)