Skip to content

Commit

Permalink
Make button text accessible
Browse files Browse the repository at this point in the history
This commit adds a color variable that contrasts with the action
color to always ensure legibility for buttons.

Closes #339
  • Loading branch information
vendelal committed Oct 25, 2019
1 parent 9646664 commit e1a95eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ button,
background-color: $action-color;
border: 0;
border-radius: var(--border-radius);
color: inherit;
color: $action-color--contrast;
cursor: pointer;
display: inline-block;
font-family: var(--font-family-base);
Expand Down
4 changes: 3 additions & 1 deletion core/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
$blue: #1565c0;
$blue-light: #3b83d5;
$gray: #333;
$white: #fff;

// Font Colors
$font-color--base: $gray;
$action-color: $blue;
$action-color--alt: $blue-light;
$action-color--contrast: $white;

// Background Colors
$viewport-background-color: #fff;
$viewport-background-color: $white;

:root {
// Typography
Expand Down

0 comments on commit e1a95eb

Please sign in to comment.