From ea3e717de2f72698ed23795aa68d86b8d68a6247 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 26 Nov 2024 10:49:38 +0100 Subject: [PATCH] fix(material/core): optgroup label color not inferred correctly Fixes that we weren't setting the color of the `mat-optgroup` label correctly, resulting in it being taken from `mat-list`. Fixes #30081. --- 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; } }