Skip to content

Commit

Permalink
a11y: improve date color contrast (#69)
Browse files Browse the repository at this point in the history
* a11y: improve date color contrast

* a11y: set background color

Setting a foreground color without also setting a background color can
mess up contrast among users whose browsers use default color schemes
that aren't black-on-white.
  • Loading branch information
Seirdy authored Oct 10, 2022
1 parent 3113684 commit 1aa36dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions _sass/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ body {
font-size: $size-font-normal;
line-height: 1.75em;
color: $color-text-normal;
background-color: $color-white;
font-feature-settings: 'kern' 1;
text-rendering: geometricPrecision;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion _sass/index-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
float: right;
font-size: 12px;
text-transform: uppercase;
color: rgba(0,0,0,0.2);
color: rgba(0,0,0,0.7);
line-height: 24px;
margin-top: 7px;
margin-bottom: 0;
Expand Down

0 comments on commit 1aa36dc

Please sign in to comment.