From 7d3c676ea87ea0589819d2313f23745b52b0819f Mon Sep 17 00:00:00 2001 From: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com> Date: Thu, 23 Oct 2025 13:50:53 -0400 Subject: [PATCH] Fix checked switch styles in Shoelace theme (#1641) --- 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); } }