From 2fcebf22f8d82df3d9fbb62ee496fc9a1928be28 Mon Sep 17 00:00:00 2001
From: G30 <50341825+silentoplayz@users.noreply.github.com>
Date: Wed, 2 Dec 2026 10:56:27 -0500
Subject: [PATCH] fix(a11y): off switches and empty checkboxes reach 3:1 with
Accessibility Mode on (#35466)
---
src/app.css | 4 ++++
src/lib/components/common/Checkbox.svelte | 11 ++++++++---
src/lib/components/common/Switch.svelte | 11 +++++++++--
3 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/src/app.css b/src/app.css
index d0fbe637ef..a06846947e 100644
--- a/src/app.css
+++ b/src/app.css
@@ -1063,6 +1063,10 @@ html.high-contrast.dark
background-color: var(--color-base-800) !important;
}
+html.high-contrast:not(.dark) input[type='checkbox']:not(:checked) {
+ border-color: var(--color-base-600);
+}
+
/* Accessibility Mode: the lightest muted pair, 1.58:1 in light and 2.14:1 in dark.
text-base-400/70 is an icon colour, so 1.4.11 governs it, and 2.07:1 misses that too. */
@layer utilities {
diff --git a/src/lib/components/common/Checkbox.svelte b/src/lib/components/common/Checkbox.svelte
index aad97182a2..8944de76a5 100644
--- a/src/lib/components/common/Checkbox.svelte
+++ b/src/lib/components/common/Checkbox.svelte
@@ -1,5 +1,6 @@