This commit is contained in:
Qing
2023-12-16 13:59:18 +08:00
parent 24e95daac1
commit 36b0782933
6 changed files with 55 additions and 49 deletions

View File

@@ -16,7 +16,7 @@ const Slider = React.forwardRef<
tabIndex={-1}
{...props}
>
<SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20 data-[disabled]:cursor-not-allowed">
<SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50">
<SliderPrimitive.Range className="absolute h-full bg-primary data-[disabled]:cursor-not-allowed " />
</SliderPrimitive.Track>
<SliderPrimitive.Thumb