From 72ff6fcce323c1f44b57b3fa2dec92a13a5dbcd3 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 27 Nov 2024 13:10:11 +0100 Subject: [PATCH] fix(material/core): optgroup label color not inferred correctly (#30085) Fixes that we weren't setting the color of the `mat-optgroup` label correctly, resulting in it being taken from `mat-list`. Fixes #30081. (cherry picked from commit 6962c858378b52e0a90f7e2cada0f71c297840ed) --- src/material/core/option/optgroup.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/material/core/option/optgroup.scss b/src/material/core/option/optgroup.scss index c46707607b84..f46bf360f39d 100644 --- a/src/material/core/option/optgroup.scss +++ b/src/material/core/option/optgroup.scss @@ -42,5 +42,6 @@ text-decoration: inherit; text-transform: inherit; white-space: normal; + color: inherit; } }