Browse Source

Fix switch component having a white border in dark mode

Thibaud Colas 1 year ago
parent
commit
4d4feb2ca0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      client/scss/components/forms/_switch.scss

+ 3 - 3
client/scss/components/forms/_switch.scss

@@ -45,8 +45,8 @@ $switch-border-radius: math.div(($switch-height + $switch-border * 2), 2);
       height: $switch-height + $switch-border * 2;
       width: $switch-width + $switch-border * 2;
       border-radius: $switch-border-radius;
-      background: theme('colors.icon-secondary');
-      border: $switch-border solid theme('colors.icon-secondary');
+      background: theme('colors.text-placeholder');
+      border: $switch-border solid theme('colors.text-placeholder');
     }
 
     &::after {
@@ -58,7 +58,7 @@ $switch-border-radius: math.div(($switch-height + $switch-border * 2), 2);
       );
       height: $switch-height;
       width: $switch-height;
-      border: $switch-border solid theme('colors.text-button');
+      border: $switch-border solid theme('colors.surface-page');
       border-radius: theme('borderRadius.full');
       background-color: theme('colors.surface-page');
     }