File tree 2 files changed +9
-4
lines changed
docs/src/app/(public)/(content)/react/components/slider/demos/hero
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 4
4
align-items : center;
5
5
width : 14rem ;
6
6
padding-block : 0.75rem ;
7
+ touch-action : none;
8
+ user-select : none;
7
9
}
8
10
9
11
.Track {
12
14
background-color : var (--color-gray-200 );
13
15
box-shadow : inset 0 0 0 1px var (--color-gray-200 );
14
16
border-radius : 0.25rem ;
17
+ user-select : none;
15
18
}
16
19
17
20
.Indicator {
18
21
border-radius : 0.25rem ;
19
22
background-color : var (--color-gray-700 );
23
+ user-select : none;
20
24
}
21
25
22
26
.Thumb {
25
29
border-radius : 100% ;
26
30
background-color : white;
27
31
outline : 1px solid var (--color-gray-300 );
32
+ user-select : none;
28
33
29
34
& : focus-visible {
30
35
outline : 2px solid var (--color-blue );
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import { Slider } from '@base-ui-components/react/slider';
4
4
export default function ExampleSlider ( ) {
5
5
return (
6
6
< Slider . Root defaultValue = { 25 } >
7
- < Slider . Control className = "flex w-56 items-center py-3" >
8
- < Slider . Track className = "h-1 w-full rounded bg-gray-200 shadow-[inset_0_0_0_1px] shadow-gray-200" >
9
- < Slider . Indicator className = "rounded bg-gray-700" />
10
- < Slider . Thumb className = "size-4 rounded-full bg-white outline outline-1 outline-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-800" />
7
+ < Slider . Control className = "flex w-56 touch-none items-center py-3 select-none " >
8
+ < Slider . Track className = "h-1 w-full rounded bg-gray-200 shadow-[inset_0_0_0_1px] shadow-gray-200 select-none " >
9
+ < Slider . Indicator className = "rounded bg-gray-700 select-none " />
10
+ < Slider . Thumb className = "size-4 rounded-full bg-white outline outline-1 outline-gray-300 select-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-800" />
11
11
</ Slider . Track >
12
12
</ Slider . Control >
13
13
</ Slider . Root >
You can’t perform that action at this time.
0 commit comments