From bb33bd7ce3e0ca54be96a69682d09ce4ccb4fe02 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Sat, 19 Oct 2024 09:05:12 +0200 Subject: [PATCH] fix(material/core): allow optgroup overrides through core-overrides Fixes that we were supporting overrides for `mat-option` through the `core-overrides` mixin, but not for `mat-optgroup`. --- src/material/core/_core-theme.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/material/core/_core-theme.scss b/src/material/core/_core-theme.scss index 7405f9042fba..b0479b86dd24 100644 --- a/src/material/core/_core-theme.scss +++ b/src/material/core/_core-theme.scss @@ -75,6 +75,7 @@ $app-tokens: tokens-mat-app.get-token-slots(); $ripple-tokens: tokens-mat-ripple.get-token-slots(); $option-tokens: tokens-mat-option.get-token-slots(); + $optgroup-tokens: tokens-mat-optgroup.get-token-slots(); $full-pseudo-checkbox-tokens: tokens-mat-full-pseudo-checkbox.get-token-slots(); $minimal-pseudo-checkbox-tokens: tokens-mat-minimal-pseudo-checkbox.get-token-slots(); @@ -82,6 +83,7 @@ (namespace: tokens-mat-app.$prefix, tokens: $app-tokens, prefix: 'app-'), (namespace: tokens-mat-ripple.$prefix, tokens: $ripple-tokens, prefix: 'ripple-'), (namespace: tokens-mat-option.$prefix, tokens: $option-tokens, prefix: 'option-'), + (namespace: tokens-mat-optgroup.$prefix, tokens: $optgroup-tokens, prefix: 'optgroup-'), ( namespace: tokens-mat-full-pseudo-checkbox.$prefix, tokens: $full-pseudo-checkbox-tokens,