File tree 2 files changed +22
-3
lines changed
packages/actify/src/components/Sliders
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ const Thumb = (props: ThumbProps) => {
47
47
>
48
48
< div className = { styles [ 'thumb' ] } >
49
49
< VisuallyHidden >
50
- < input ref = { inputRef } { ...mergeProps ( inputProps , focusProps ) } />
50
+ < input
51
+ ref = { inputRef }
52
+ className = { styles [ 'input' ] }
53
+ { ...mergeProps ( inputProps , focusProps ) }
54
+ />
51
55
</ VisuallyHidden >
52
56
{ isFocusVisible && < FocusRing /> }
53
57
< Ripple id = { inputProps . id } disabled = { state . isDisabled } />
Original file line number Diff line number Diff line change 167
167
168
168
.slider .horizontal .track {
169
169
height : 40px ;
170
+ margin : 0 auto;
170
171
width : calc (100% - var (--_state-layer-size ));
171
172
}
172
173
223
224
224
225
.slider .horizontal .track : before ,
225
226
.slider .horizontal .track : after {
226
- height : var (--_active-track-height );
227
- width : 100% ;
228
227
top : 50% ;
229
228
transform : translateY (-50% );
229
+ height : var (--_active-track-height );
230
+ width : 100% ;
231
+ left : 0 ;
230
232
}
231
233
232
234
.slider .vertical .track {
256
258
background : var (--_handle-color );
257
259
border-radius : var (--_handle-shape );
258
260
}
261
+ .input {
262
+ opacity : 0 ;
263
+ -webkit-tap-highlight-color : rgba (0 , 0 , 0 , 0 );
264
+ position : absolute;
265
+ box-sizing : border-box;
266
+ height : 100% ;
267
+ width : 100% ;
268
+ margin : 0px ;
269
+ background : rgba (0 , 0 , 0 , 0 );
270
+ cursor : pointer;
271
+ pointer-events : auto;
272
+ appearance : none;
273
+ }
259
274
260
275
.slider .horizontal .handle {
261
276
top : 50% ;
You can’t perform that action at this time.
0 commit comments