Skip to content

Commit

Permalink
refactor(material-experimental/mdc-slider): clean up leftover depreca…
Browse files Browse the repository at this point in the history
…ted function usage (#23999)

Fixes a couple of places where we were using the deprecated `map-get` function from Sass.

(cherry picked from commit 7b275f0)
  • Loading branch information
crisbeto authored and zarend committed Nov 22, 2021
1 parent 73414a9 commit 3223f13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/material-experimental/mdc-slider/_slider-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

.mat-mdc-slider {
&.mat-primary, &.mat-accent, &.mat-warn {
$is-dark: map-get($config, is-dark);
$is-dark: map.get($config, is-dark);
$indicator-color: if($is-dark, white, black);
$indicator-text-color: if($is-dark, black, white);
$indicator-opacity: if($is-dark, 0.9, 0.6);
Expand Down
2 changes: 1 addition & 1 deletion src/material/core/theming/_theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ $_emitted-density: () !default;
//
// @mixin my-custom-component-theme($theme) {
// .my-comp {
// background-color: mat-color(map-get($theme, primary));
// background-color: mat.get-color-from-palette(map.get($theme, primary));
// }
// }
//
Expand Down

0 comments on commit 3223f13

Please sign in to comment.