From cb6920828f86d65e2cc9f037356d85871838765c Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Fri, 13 Dec 2024 11:38:02 -0800 Subject: [PATCH] chore: use string.slice PiperOrigin-RevId: 705949791 --- packages/mdc-theme/_theme-color.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mdc-theme/_theme-color.scss b/packages/mdc-theme/_theme-color.scss index dc5f42734c1..72cfd3ef47e 100644 --- a/packages/mdc-theme/_theme-color.scss +++ b/packages/mdc-theme/_theme-color.scss @@ -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.