HC: fix switch slider borders

- HC got caught up on a condition made for color (suggested) buttons.
  the rule just made the slider a tag lighter on dark probably due to the
  overlaid AA making it stronger. Got rid of it for now, if someone cares
  enough we can reintroduce an exception (that doesn't break HC).
This commit is contained in:
Jakub Steiner
2020-04-22 11:51:27 +02:00
parent e026a04e03
commit 9fe6bc0792
2 changed files with 3 additions and 7 deletions

View File

@@ -2337,15 +2337,11 @@ switch {
min-width: 24px;
min-height: 24px;
border: 1px solid;
border-color: $borders_color;
border-radius: 50%;
transition: $button_transition;
@if $variant == 'light' {
@include button(normal-alt, $edge: $shadow_color);
}
@else {
@include button(normal-alt, $c: lighten($bg_color,6%), $edge: $shadow_color);
}
@include button(normal, $edge: $shadow_color);
}
> image { color: transparent; } /* only show i / o for the accessible theme */

View File

@@ -198,7 +198,7 @@
// normal button alternative look
//
color: $tc;
border-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color);
border-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color); //colored buttons
@if $variant == 'light' {
background-image: linear-gradient(to bottom, lighten($c, 5%) 20%, $c 90%);
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)),