From f733b06dbf787034bc912d4e917b3218b7d96492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 13 Apr 2021 10:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96dropdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/dropdown.wc | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/src/form/dropdown.wc b/src/form/dropdown.wc index 2fd05d9..d0b9fb3 100644 --- a/src/form/dropdown.wc +++ b/src/form/dropdown.wc @@ -111,6 +111,17 @@ slot { :host(:focus-within) { box-shadow: 0 0 0 2px var(--color-plain-a); } + +/* --- */ +:host([disabled]) { + cursor: not-allowed; + + .label { + border-color: var(--color-grey-1); + background: var(--color-plain-1); + opacity: 0.6; + } +}