From fd6a4040ae2127f7b2298a4bedb1a3cc0e776470 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 4 Mar 2022 09:28:00 +0100 Subject: [PATCH] Revert "fix(material/checkbox): incorrect text color when placed inside an overlay with a dark theme (#19054)" This reverts commit f20122a4998f65c46452dc680adaec49cea7c0f5. --- src/material/checkbox/_checkbox-theme.scss | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/material/checkbox/_checkbox-theme.scss b/src/material/checkbox/_checkbox-theme.scss index 3053b509c643..8b96f974432e 100644 --- a/src/material/checkbox/_checkbox-theme.scss +++ b/src/material/checkbox/_checkbox-theme.scss @@ -32,12 +32,6 @@ fill: $checkbox-mark-color; } - .mat-checkbox-label { - // Explicitly set the text color since the checkbox may be - // inside an overlay that doesn't have the proper theme text color. - color: theming.get-color-from-palette($foreground, 'text'); - } - .mat-checkbox-checkmark-path { // !important is needed here because a stroke must be set as an // attribute on the SVG in order for line animation to work properly.