From 65521916b6e122397143a61ecfb1657641add18a Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Sun, 22 Dec 2024 02:09:38 -0800 Subject: [PATCH] chore: Replace deprecated global functions with relevant equivalents. PiperOrigin-RevId: 708764271 --- packages/mdc-button/_button-shared-theme.scss | 2 +- packages/mdc-icon-button/_icon-button-theme.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mdc-button/_button-shared-theme.scss b/packages/mdc-button/_button-shared-theme.scss index 87045928b1d..51ff8454fbd 100644 --- a/packages/mdc-button/_button-shared-theme.scss +++ b/packages/mdc-button/_button-shared-theme.scss @@ -779,7 +779,7 @@ $disabled-container-color: rgba( ); .mdc-button__focus-ring { - @if $offset-value != 0 and type-of($offset-value) == 'number' { + @if $offset-value != 0 and meta.type-of($offset-value) == 'number' { @include focus-ring.focus-ring-offset( $offset: $offset-value, $query: $query diff --git a/packages/mdc-icon-button/_icon-button-theme.scss b/packages/mdc-icon-button/_icon-button-theme.scss index 7e168655324..557fc722918 100644 --- a/packages/mdc-icon-button/_icon-button-theme.scss +++ b/packages/mdc-icon-button/_icon-button-theme.scss @@ -422,7 +422,7 @@ $light-theme: ( $offset ); - @if type-of($offset-value) == 'number' { + @if meta.type-of($offset-value) == 'number' { .mdc-icon-button__focus-ring { @include focus-ring.focus-ring-offset( $offset: $offset-value,