Skip to content

Commit

Permalink
refactor(multiple): clean up map-get usages (#25921)
Browse files Browse the repository at this point in the history
The global `map-get` function is deprecated. We should be using the namespaced `map.get` instead.

(cherry picked from commit eadb6b1)
  • Loading branch information
crisbeto committed Nov 6, 2022
1 parent 66632c9 commit 30a4e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/material/checkbox/_checkbox-private.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $private-checkbox-theme-config: map.merge(mdc-checkbox-theme.$light-theme, (
// Mixin that includes the checkbox theme styles with a given palette.
// By default, the MDC checkbox always uses the `secondary` palette.
@mixin private-checkbox-styles-with-color($color-config, $color, $mdc-color) {
$is-dark: map-get($color-config, is-dark);
$is-dark: map.get($color-config, is-dark);
$on-surface: mdc-theme-color.prop-value(on-surface);
$border-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$border-color));
$disabled-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$disabled-color));
Expand Down
2 changes: 1 addition & 1 deletion src/material/radio/_radio-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@include mdc-helpers.using-mdc-theme($config) {
$on-surface: rgba(mdc-theme-color.$on-surface, 0.54);
$is-dark: map-get($config, is-dark);
$is-dark: map.get($config, is-dark);
$active-border-color: if(
$is-dark,
theming.get-color-from-palette(palette.$gray-palette, 200),
Expand Down

0 comments on commit 30a4e75

Please sign in to comment.