@@ -56,6 +56,7 @@ $_track-inactive-height: 4px;
56
56
// It is recommended that most users use `core-styles` instead.
57
57
@mixin without-ripple ($query : feature-targeting .all ()) {
58
58
$feat-color : feature-targeting .create-target ($query , color );
59
+ $feat-structure : feature-targeting .create-target ($query , structure );
59
60
60
61
@include static-styles ($query : $query );
61
62
@@ -115,6 +116,39 @@ $_track-inactive-height: 4px;
115
116
$color : slider-theme .$value-indicator-text-color ,
116
117
$query : $query
117
118
);
119
+
120
+ .mdc-slider__track {
121
+ @include feature-targeting .targets ($feat-structure ) {
122
+ height : $_track-inactive-height ;
123
+ }
124
+ }
125
+
126
+ .mdc-slider__track--active {
127
+ @include feature-targeting .targets ($feat-structure ) {
128
+ height : $_track-active-height ;
129
+ }
130
+ }
131
+
132
+ .mdc-slider__track--inactive {
133
+ @include feature-targeting .targets ($feat-structure ) {
134
+ height : $_track-inactive-height ;
135
+ }
136
+ }
137
+
138
+ .mdc-slider__thumb {
139
+ @include feature-targeting .targets ($feat-structure ) {
140
+ height : $_thumb-ripple-size ;
141
+ width : $_thumb-ripple-size ;
142
+ }
143
+ }
144
+
145
+ .mdc-slider__tick-mark--active ,
146
+ .mdc-slider__tick-mark--inactive {
147
+ @include feature-targeting .targets ($feat-structure ) {
148
+ height : 2px ;
149
+ width : 2px ;
150
+ }
151
+ }
118
152
}
119
153
120
154
.mdc-slider--disabled {
@@ -198,7 +232,6 @@ $_track-inactive-height: 4px;
198
232
199
233
.mdc-slider__track {
200
234
@include feature-targeting .targets ($feat-structure ) {
201
- height : $_track-inactive-height ;
202
235
position : absolute ;
203
236
top : 50% ;
204
237
transform : translateY (-50% );
@@ -223,8 +256,6 @@ $_track-inactive-height: 4px;
223
256
// such that the track grows/shrinks as needed, but the border-radius
224
257
// is not affected by the scaling.
225
258
border-radius : 3px ;
226
- // TODO(b/241274018): not static, move into themeable styles
227
- height : $_track-active-height ;
228
259
overflow : hidden ;
229
260
top : math .div ($_track-inactive-height - $_track-active-height , 2 );
230
261
}
@@ -259,7 +290,6 @@ $_track-inactive-height: 4px;
259
290
260
291
@include feature-targeting .targets ($feat-structure ) {
261
292
border-radius : 2px ;
262
- height : $_track-inactive-height ;
263
293
left : 0 ;
264
294
top : 0 ;
265
295
}
@@ -275,14 +305,11 @@ $_track-inactive-height: 4px;
275
305
.mdc-slider__thumb {
276
306
@include feature-targeting .targets ($feat-structure ) {
277
307
display : flex ;
278
- // TODO(b/241274018): not static, move (+ width) to themeable styles
279
- height : $_thumb-ripple-size ;
280
308
@include rtl .ignore-next-line ();
281
309
left : math .div (- $_thumb-ripple-size , 2 );
282
310
outline : none ;
283
311
position : absolute ;
284
312
user-select : none ;
285
- width : $_thumb-ripple-size ;
286
313
}
287
314
288
315
& --top {
@@ -342,9 +369,6 @@ $_track-inactive-height: 4px;
342
369
.mdc-slider__tick-mark--inactive {
343
370
@include feature-targeting .targets ($feat-structure ) {
344
371
border-radius : 50% ;
345
- // TODO(b/241274018): not static, move (+ width) to themeable styles
346
- height : 2px ;
347
- width : 2px ;
348
372
}
349
373
}
350
374
}
0 commit comments