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: 705488630
  • Loading branch information
material-web-copybara authored and copybara-github committed Dec 13, 2024
1 parent e0563ec commit 82f7c77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion packages/mdc-theme/_theme-color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ $_property-values-copy: $property-values;
}

@return meta.type-of($style) == 'color' or $style == 'currentColor' or
str_slice($style, 1, 4) == 'var(' or $style == 'inherit' or $style ==
string.slice($style, 1, 4) == 'var(' or $style == 'inherit' or $style ==
'transparent' or
// NOTE: `GrayText` is deprecated, but is the only feasible way to convey the
// correct high-contrast mode colors in alignment with Windows system colors.
Expand Down

0 comments on commit 82f7c77

Please sign in to comment.