Skip to content

Commit 3223f13

Browse files
crisbetozarend
authored andcommitted
refactor(material-experimental/mdc-slider): clean up leftover deprecated function usage (#23999)
Fixes a couple of places where we were using the deprecated `map-get` function from Sass. (cherry picked from commit 7b275f0)
1 parent 73414a9 commit 3223f13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material-experimental/mdc-slider/_slider-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
.mat-mdc-slider {
1717
&.mat-primary, &.mat-accent, &.mat-warn {
18-
$is-dark: map-get($config, is-dark);
18+
$is-dark: map.get($config, is-dark);
1919
$indicator-color: if($is-dark, white, black);
2020
$indicator-text-color: if($is-dark, black, white);
2121
$indicator-opacity: if($is-dark, 0.9, 0.6);

src/material/core/theming/_theming.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ $_emitted-density: () !default;
395395
//
396396
// @mixin my-custom-component-theme($theme) {
397397
// .my-comp {
398-
// background-color: mat-color(map-get($theme, primary));
398+
// background-color: mat.get-color-from-palette(map.get($theme, primary));
399399
// }
400400
// }
401401
//

0 commit comments

Comments
 (0)