From da1e4d9a99e87a020c778ad2f3142b89c2e8a732 Mon Sep 17 00:00:00 2001 From: Sakshi Uppoor Date: Sat, 9 Oct 2021 03:02:55 +0530 Subject: [PATCH] Fix toggle switch bug in high-contrast mode (#7561) Co-authored-by: Thibaud Colas --- CHANGELOG.txt | 1 + CONTRIBUTORS.rst | 1 + client/scss/components/_switch.scss | 2 ++ docs/releases/2.15.rst | 1 + 4 files changed, 5 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4ec623e4ed..f7675b5bec 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -66,6 +66,7 @@ Changelog * Fix: Only show active (not disabled) tasks in the workflow task chooser (LB Johnston) * Fix: CSS build scripts now output to the correct directory paths on Windows (Vince Salvino) * Fix: Capture log output from style fallback to avoid noise in unit tests (Matt Westcott) + * Fix: Switch widgets on/off states are now visually different for high-contrast mode users (Sakshi Uppoor) 2.14.1 (12.08.2021) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 54bf3b6324..0d82accb9c 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -544,6 +544,7 @@ Contributors * Jane Liu * Joe Howard * Jochen Wersdörfer +* Sakshi Uppoor Translators =========== diff --git a/client/scss/components/_switch.scss b/client/scss/components/_switch.scss index fc6eea466b..d917b991ff 100644 --- a/client/scss/components/_switch.scss +++ b/client/scss/components/_switch.scss @@ -38,11 +38,13 @@ $switch-color-middle-grey: #777; } &::after { + box-sizing: border-box; position: absolute; top: 50%; transform: translate($switch-border, -50%); height: $switch-height; width: $switch-height; + border: $switch-border solid $color-white; border-radius: 50%; background-color: $color-white; } diff --git a/docs/releases/2.15.rst b/docs/releases/2.15.rst index e4257156e5..40bda2715c 100644 --- a/docs/releases/2.15.rst +++ b/docs/releases/2.15.rst @@ -84,6 +84,7 @@ Bug fixes * Add full support for custom ``edit_handler`` usage by adding missing ``bind_to`` call to ``PreviewOnEdit`` view (Stefan Hammer) * CSS build scripts now output to the correct directory paths on Windows (Vince Salvino) * Capture log output from style fallback to avoid noise in unit tests (Matt Westcott) + * Switch widgets on/off states are now visually different for high-contrast mode users (Sakshi Uppoor) Upgrade considerations ======================