Skip to content

Commit 07a1452

Browse files
authored
build: fix mdc slider demo (#19635)
In #19411 the MDC slider theme was dropped from the all themes mixin since the current slider implementation will be replaced eventually which also broke the MDC slider demo. These changes add back the slider theme only to the dev app so that we can still test it since this is still code that we're releasing to npm.
1 parent 50898a4 commit 07a1452

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dev-app/theme.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@import '../material-experimental/mdc-theming/all-theme';
1010
@import '../material-experimental/mdc-typography/all-typography';
1111
@import '../material-experimental/mdc-density/all-density';
12+
@import '../material-experimental/mdc-slider/slider-theme';
1213
@import '../material-experimental/popover-edit/popover-edit';
1314

1415
// Plus imports for other components in your app.
@@ -42,6 +43,9 @@ $candy-app-theme: mat-light-theme((
4243
@include mat-column-resize-theme($candy-app-theme);
4344
@include mat-popover-edit-theme($candy-app-theme);
4445

46+
// We add this in manually for now, because it isn't included in `angular-material-mdc-theme`.
47+
@include mat-mdc-slider-theme($candy-app-theme);
48+
4549
// Define an alternate dark theme.
4650
$dark-primary: mat-palette($mat-blue-grey);
4751
$dark-accent: mat-palette($mat-amber, A200, A100, A400);
@@ -69,6 +73,7 @@ $dark-theme: mat-dark-theme((
6973
@include angular-material-mdc-color($dark-theme);
7074
@include mat-column-resize-color($dark-theme);
7175
@include mat-popover-edit-color($dark-theme);
76+
@include mat-mdc-slider-color($dark-theme);
7277
}
7378

7479
// Include the dark theme for focus indicators.

0 commit comments

Comments
 (0)