From b56b42bea05f462b8510892e0599d8fa8bc82588 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Fri, 31 Jan 2025 21:26:19 +0200 Subject: [PATCH] style(next): improve the color contrast for switches --- src/public/stylesheets/theme-next/forms.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css index 9e3c7e2b5..92d7f84d7 100644 --- a/src/public/stylesheets/theme-next/forms.css +++ b/src/public/stylesheets/theme-next/forms.css @@ -451,6 +451,14 @@ optgroup { --icon-button-size: 28px; } +div.switch-widget { + --switch-off-track-background: var(--cmd-button-background-color); + --switch-on-track-background: var(--cmd-button-text-color); + + --switch-off-thumb-background: var(--cmd-button-text-color); + --switch-on-thumb-background: var(--main-background-color); +} + /* Links */ body a.tn-link,