File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
material-experimental/mdc-slider Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ $candy-app-theme: theming.light-theme((
43
43
@include all-theme .angular-material-mdc-theme ($candy-app-theme );
44
44
@include column-resize .theme ($candy-app-theme );
45
45
@include popover-edit .theme ($candy-app-theme );
46
- // We add this in manually for now, because it isn't included in `angular-material-mdc-theme`.
47
- @include slider-theme .theme ($candy-app-theme );
48
46
49
47
.demo-strong-focus {
50
48
// 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
8
@use ' ../../material/core/ripple/ripple' ;
6
9
@use ' ../../material/core/theming/theming' ;
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 .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