File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
material-experimental/mdc-slider Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ $candy-app-theme: mat.define-light-theme((
36
36
@include mdc-all-theme .all-mdc-component-themes ($candy-app-theme );
37
37
@include column-resize .theme ($candy-app-theme );
38
38
@include popover-edit .theme ($candy-app-theme );
39
- // We add this in manually for now, because it isn't included in `all-mdc-component-themes`.
40
- @include mdc-slider-theme .theme ($candy-app-theme );
41
39
42
40
.demo-strong-focus {
43
41
// Include base styles for strong focus indicators.
Original file line number Diff line number Diff line change
1
+ @use ' sass:map' ;
2
+
1
3
@use ' @material/slider/slider' as mdc-slider ;
2
4
@use ' @material/slider/slider-theme' ;
3
5
@use ' @material/theme/variables' as theme-variables ;
6
+ @use ' @material/theme/theme' as mdc-theme ;
4
7
@use ' ../mdc-helpers/mdc-helpers' ;
5
- @use ' ../../material/core/ripple/ripple' ;
8
+ @use ' ../../material/core/ripple/ripple-theme ' ;
6
9
@use ' ../../material/core/theming/theming' ;
7
10
8
11
@mixin color ($config-or-theme ) {
107
110
),
108
111
$query : mdc-helpers .$mat-theme-styles-query
109
112
);
110
- @include ripple .theme ((
113
+ $ripple-color : map .get (theme-variables .$property-values , $color );
114
+ @include ripple-theme .color ((
111
115
foreground: (
112
- base: theme-variables . prop-value ( $ color)
116
+ base: $ripple- color
113
117
),
114
118
));
115
119
.mat-mdc-slider-hover-ripple {
116
- background-color : rgba (theme-variables . prop-value ( $ color) , 0.05 );
120
+ background-color : rgba ($ripple- color , 0.05 );
117
121
}
118
122
.mat-mdc-slider-focus-ripple , .mat-mdc-slider-active-ripple {
119
- background-color : rgba (theme-variables . prop-value ( $ color) , 0.2 );
123
+ background-color : rgba ($ripple- color , 0.2 );
120
124
}
121
125
}
You can’t perform that action at this time.
0 commit comments