Skip to content

Commit 62e517c

Browse files
kvizcarraandrewseguin
authored andcommitted
refactor(material/progress-bar): Delete temp bar-and-track-height token (#27073)
Also, temporarily comment out token slots validation test while `bar-and-track-height` is removed from MDC. (cherry picked from commit de688da)
1 parent 6e51008 commit 62e517c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/material/core/tokens/m2/mdc/_linear-progress.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ $prefix: (mdc, linear-progress);
1717
$height: 4px;
1818

1919
@return (
20-
// The height of the progress bar. MDC has three tokens with the goal
21-
// of having `track-height` apply only to the track. In our case, all three
22-
// are always the same. Specify all three while the transition is in
23-
// progress.
20+
// The height of the progress bar. `active-indicator-height` applies to the
21+
// bar and `track-height` applies to the track.
2422
active-indicator-height: $height,
25-
bar-and-track-height: $height,
2623
track-height: $height,
2724
);
2825
}

src/material/core/tokens/tests/test-validate-tokens.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@
6868
$slots: tokens-mdc-checkbox.get-token-slots(),
6969
$reference: mdc-checkbox-theme.$light-theme
7070
);
71-
@include validate-slots(
72-
$component: 'm2.mdc.linear-progress',
73-
$slots: tokens-mdc-linear-progress.get-token-slots(),
74-
$reference: mdc-linear-progress-theme.$light-theme
75-
);
71+
// TODO: Uncomment after updating MDC canary version
72+
// @include validate-slots(
73+
// $component: 'm2.mdc.linear-progress',
74+
// $slots: tokens-mdc-linear-progress.get-token-slots(),
75+
// $reference: mdc-linear-progress-theme.$light-theme
76+
// );
7677
@include validate-slots(
7778
$component: 'm2.mdc.radio',
7879
$slots: tokens-mdc-radio.get-token-slots(),

0 commit comments

Comments
 (0)