From 43214b5b57de707435cf1f470eace73bc4ed8c99 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 4 Mar 2022 14:30:44 +0100 Subject: [PATCH] Revert "fix(material/checkbox): incorrect text color when placed inside an overlay with a dark theme (#19054)" (#24519) 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.