Skip to content

Commit

Permalink
chore: Replace deprecated global functions with relevant equivalents.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 708764271
  • Loading branch information
material-web-copybara authored and copybara-github committed Dec 22, 2024
1 parent cb69208 commit 6552191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mdc-button/_button-shared-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/mdc-icon-button/_icon-button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6552191

Please sign in to comment.