From f8252d816806b4fff18bb5f7d313a8edca774459 Mon Sep 17 00:00:00 2001 From: Amy Sorto <8575252+amysorto@users.noreply.github.com> Date: Wed, 23 Aug 2023 22:52:09 +0000 Subject: [PATCH] fix(material/progress-spinner): Emit tokens under mixin root selector (#27594) --- src/material/progress-spinner/_progress-spinner-theme.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/material/progress-spinner/_progress-spinner-theme.scss b/src/material/progress-spinner/_progress-spinner-theme.scss index dbe3311ec3ad..9e229dd0708f 100644 --- a/src/material/progress-spinner/_progress-spinner-theme.scss +++ b/src/material/progress-spinner/_progress-spinner-theme.scss @@ -16,16 +16,16 @@ @mixin color($config-or-theme) { $config: theming.get-color-config($config-or-theme); $mdc-circular-progress-color-tokens: tokens-mdc-circular-progress.get-color-tokens($config); + @include sass-utils.current-selector-or-root() { - .mat-mdc-progress-spinner { @include mdc-circular-progress-theme.theme($mdc-circular-progress-color-tokens); - &.mat-accent { + .mat-accent { $color: theming.get-color-from-palette(map.get($config, accent)); @include mdc-circular-progress-theme.theme((active-indicator-color: $color)); } - &.mat-warn { + .mat-warn { $color: theming.get-color-from-palette(map.get($config, warn)); @include mdc-circular-progress-theme.theme((active-indicator-color: $color)); }