From 9187f3f3867cb8c0a71d3dd3e1de855239aac33f Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Thu, 26 Sep 2024 18:31:54 +0530 Subject: [PATCH] fix: switch role checkbox being affected differently. --- src/routes/+layout.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 2c2ee202e..f6902870d 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -197,11 +197,17 @@ /* TODO: remove this block once Pink V2 is incorporated */ input[type='radio'], - input[type='checkbox'], + input[type='checkbox']:not([role='switch']), input[type='switchbox'] { .theme-dark &:not(:checked) { background-color: transparent; /* take whatever color is behind */ border: 1px solid var(--color-mid-neutral-70, #56565c); } } + + input[type='checkbox'][role='switch'] { + .theme-dark &:not(:checked) { + background-color: #56565c; + } + }