Skip to content

Commit

Permalink
fix(material/progress-spinner): Emit tokens under mixin root selector (
Browse files Browse the repository at this point in the history
  • Loading branch information
amysorto authored Aug 23, 2023
1 parent dfba0ed commit f8252d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/material/progress-spinner/_progress-spinner-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit f8252d8

Please sign in to comment.