Skip to content

Commit 27fb767

Browse files
committed
fixup! refactor(material/progress-bar): change mat-progress-bar to use MDC's token API
1 parent 315a3f5 commit 27fb767

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/material/progress-bar/progress-bar.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use 'sass:map';
12
@use '@material/theme/custom-properties' as mdc-custom-properties;
23
@use '@material/linear-progress/linear-progress' as mdc-linear-progress;
34
@use '@material/linear-progress/linear-progress-theme' as mdc-linear-progress-theme;
@@ -10,7 +11,12 @@
1011
@include mdc-linear-progress.static-styles();
1112

1213
// Add the official slots for the MDC progress-bar.
13-
@include mdc-linear-progress-theme.theme-styles($mdc-progress-bar-token-slots);
14+
@include mdc-linear-progress-theme.theme-styles(
15+
map.merge($mdc-progress-bar-token-slots, (
16+
// Excluded because it is meant to be set by theme (b/273562256).
17+
track-color: null,
18+
))
19+
);
1420

1521
// Add default values for tokens that aren't outputted by the theming API.
1622
.mat-mdc-progress-bar {

0 commit comments

Comments
 (0)