fixed special buttons foreground color, plus adjusted backdrop selected color

This commit is contained in:
eudaimon 2022-04-19 19:35:08 +02:00
parent 9d17a971ad
commit 6c1ab52306
10 changed files with 348 additions and 335 deletions

View file

@ -690,7 +690,7 @@ button {
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
(destructive-action, $destructive_color) {
&.#{$b_type} {
@include button(normal, $b_color, white);
@include button(normal, $b_color, if(lightness($b_color)>50%, black, white));
@include focus-ring($fc: $alt_focus_border_color);
&.flat {