From b32884a31c6bfac82f6b4c7bbcb185c119cee463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Wed, 15 Jan 2025 13:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E5=A2=9E=E5=8A=A0Picker?= =?UTF-8?q?=E7=9A=84=E7=A6=81=E7=94=A8=E6=A0=B7=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/component.css b/src/component.css index 8c17371..8ceba63 100644 --- a/src/component.css +++ b/src/component.css @@ -384,6 +384,23 @@ background: transparent; border-radius: var(--border-radius-xxs); } + &[disabled] { + cursor: not-allowed; + &::-webkit-slider-thumb { + background: oklch(from var(--color-primary-disabled) l c h / 70%); + cursor: not-allowed; + } + &::-moz-range-thumb { + background: oklch(from var(--color-primary-disabled) l c h / 70%); + cursor: not-allowed; + } + &::-webkit-slider-runnable-track { + cursor: not-allowed; + } + &::-moz-range-track { + cursor: not-allowed; + } + } } /* Badge */