Skip to content

Commit e4d037e

Browse files
committed
fixup! refactor(material/progress-spinner): change mat-progress-spinner to use MDC's token API
1 parent 23fd3c2 commit e4d037e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/material/progress-spinner/progress-spinner.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
// Add the MDC progress spinner static styles.
1212
@include mdc-circular-progress.static-styles();
1313

14-
// Add the official slots for the MDC circular progress.
15-
@include mdc-circular-progress-theme.theme-styles($mdc-circular-progress-token-slots);
16-
17-
// Add default values for tokens that aren't outputted by the theming API.
1814
.mat-mdc-progress-spinner {
15+
// Add the official slots for the MDC circular progress.
16+
@include mdc-circular-progress-theme.theme-styles($mdc-circular-progress-token-slots);
17+
18+
// Add default values for tokens that aren't outputted by the theming API.
1919
@include mdc-circular-progress-theme.theme(m2-mdc-circular-progress.get-unthemable-tokens());
2020
}
2121
}

src/material/progress-spinner/progress-spinner.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ const BASE_STROKE_WIDTH = 10;
8080
'tabindex': '-1',
8181
'[class._mat-animation-noopable]': `_noopAnimations`,
8282
'[class.mdc-circular-progress--indeterminate]': 'mode === "indeterminate"',
83+
'[style.width.px]': 'diameter',
84+
'[style.height.px]': 'diameter',
8385
'[style.--mdc-circular-progress-size]': 'diameter + "px"',
8486
'[style.--mdc-circular-progress-active-indicator-width]': 'diameter + "px"',
8587
'[attr.aria-valuemin]': '0',

0 commit comments

Comments
 (0)