Skip to content

Commit

Permalink
chore: use string.slice
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704706013
  • Loading branch information
material-web-copybara authored and copybara-github committed Dec 12, 2024
1 parent e0563ec commit 35e32c5
Showing 1 changed file with 1 addition and 1 deletion.
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 35e32c5

Please sign in to comment.