From a02e4de8cdab0b46033b9051f4eb18b696bec8a4 Mon Sep 17 00:00:00 2001 From: lindsaym-fa Date: Thu, 23 Oct 2025 11:29:21 -0400 Subject: [PATCH] fix checked switch styles in Shoelace theme --- packages/webawesome/src/styles/themes/shoelace.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webawesome/src/styles/themes/shoelace.css b/packages/webawesome/src/styles/themes/shoelace.css index d138f23ca..a9ef60a0b 100644 --- a/packages/webawesome/src/styles/themes/shoelace.css +++ b/packages/webawesome/src/styles/themes/shoelace.css @@ -457,7 +457,7 @@ border-color: var(--wa-color-gray-50); } - &[checked]::part(control) { + &:state(checked)::part(control) { background-color: var(--wa-form-control-activated-color); border-color: var(--wa-form-control-activated-color); } @@ -466,7 +466,7 @@ background-color: var(--wa-color-surface-default); border: var(--wa-border-width-s) var(--wa-border-style) var(--wa-color-gray-50); } - &[checked]::part(thumb) { + &:state(checked)::part(thumb) { border-color: var(--wa-form-control-activated-color); } }