From d1b2e5a649d5cc34a1ebc180fe6d43b760f84dc3 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 3 Nov 2022 15:22:51 +0100 Subject: [PATCH] refactor(multiple): clean up map-get usages The global `map-get` function is deprecated. We should be using the namespaced `map.get` instead. --- src/material/checkbox/_checkbox-private.scss | 2 +- src/material/radio/_radio-theme.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/checkbox/_checkbox-private.scss b/src/material/checkbox/_checkbox-private.scss index 41fe38b161a8..0839251344f6 100644 --- a/src/material/checkbox/_checkbox-private.scss +++ b/src/material/checkbox/_checkbox-private.scss @@ -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)); diff --git a/src/material/radio/_radio-theme.scss b/src/material/radio/_radio-theme.scss index c7ffccd6f3c3..42d26cb134fd 100644 --- a/src/material/radio/_radio-theme.scss +++ b/src/material/radio/_radio-theme.scss @@ -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),