Skip to content

Commit 30a4e75

Browse files
committed
refactor(multiple): clean up map-get usages (#25921)
The global `map-get` function is deprecated. We should be using the namespaced `map.get` instead. (cherry picked from commit eadb6b1)
1 parent 66632c9 commit 30a4e75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material/checkbox/_checkbox-private.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $private-checkbox-theme-config: map.merge(mdc-checkbox-theme.$light-theme, (
2525
// Mixin that includes the checkbox theme styles with a given palette.
2626
// By default, the MDC checkbox always uses the `secondary` palette.
2727
@mixin private-checkbox-styles-with-color($color-config, $color, $mdc-color) {
28-
$is-dark: map-get($color-config, is-dark);
28+
$is-dark: map.get($color-config, is-dark);
2929
$on-surface: mdc-theme-color.prop-value(on-surface);
3030
$border-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$border-color));
3131
$disabled-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$disabled-color));

src/material/radio/_radio-theme.scss

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

2929
@include mdc-helpers.using-mdc-theme($config) {
3030
$on-surface: rgba(mdc-theme-color.$on-surface, 0.54);
31-
$is-dark: map-get($config, is-dark);
31+
$is-dark: map.get($config, is-dark);
3232
$active-border-color: if(
3333
$is-dark,
3434
theming.get-color-from-palette(palette.$gray-palette, 200),

0 commit comments

Comments
 (0)