Skip to content

Commit

Permalink
doc: fix left nav color contrast
Browse files Browse the repository at this point in the history
I believe this is the last change to make in the docs for color contrast
accessibility per WCAG AA.

Currently, the current item in the nav is #43853d on a #333333
background for a color contrast of 2.8:1, failing WCAG AA. This swaps in
removes a confusing bottom border on the item, replacing it with
bolding to preserve the item's highlighting.

PR-URL: #35141
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Derek Lewis <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
Trott committed Sep 12, 2020
1 parent 712b51a commit 4fdc5ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,8 @@ a code {
#column2 ul li a.active,
#column2 ul li a.active:hover,
#column2 ul li a.active:focus {
color: #43853d;
border-radius: 0;
border-bottom: 1px solid #43853d;
font-weight: 700;
color: #fff;
background-color: transparent;
}

Expand Down

0 comments on commit 4fdc5ac

Please sign in to comment.