Skip to content

Commit

Permalink
fix(Button): add contrast for selected state in dark theme (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje authored Jul 28, 2022
1 parent f96fa4c commit cbb86ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ $block: '.#{$ns}button';
--yc-button-background-color: var(--yc-color-base-selection);
--yc-button-background-color-hover: var(--yc-color-base-selection-hover);

@include button-text-color(var(--yc-color-text-special));
@include button-text-color(
var(--yc-my-color-brand-text, var(--yc-color-text-special))
);
}
}

Expand Down
2 changes: 2 additions & 0 deletions styles/brand.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
--yc-my-color-brand-selection-hover: var(--yc-color-private-blue-100);
--yc-my-color-brand-link: var(--yc-my-color-brand-normal);
--yc-my-color-brand-link-hover: var(--yc-color-private-blue-800);
--yc-my-color-brand-text: var(--yc-my-color-brand-normal);
--yc-my-color-brand-text-contrast: var(--yc-color-text-light-primary);
--yc-my-color-brand-link-visited: var(--yc-color-private-purple-550);
--yc-my-color-brand-link-visited-hover: var(--yc-color-private-purple-800);
Expand All @@ -28,6 +29,7 @@
--yc-my-color-brand-selection-hover: var(--yc-color-private-blue-300);
--yc-my-color-brand-link: var(--yc-color-private-blue-700);
--yc-my-color-brand-link-hover: var(--yc-color-private-blue-850);
--yc-my-color-brand-text: var(--yc-color-private-blue-700);
--yc-my-color-brand-text-contrast: var(--yc-color-text-light-primary);
--yc-my-color-brand-link-visited: var(--yc-color-private-purple-700);
--yc-my-color-brand-link-visited-hover: var(--yc-color-private-purple-850);
Expand Down

0 comments on commit cbb86ac

Please sign in to comment.