Skip to content

Commit 23dcfe5

Browse files
Trottaddaleax
authored andcommitted
doc: fix left nav color contrast
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]>
1 parent 745987e commit 23dcfe5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api_assets/style.css

+2-3
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,8 @@ a code {
539539
#column2 ul li a.active,
540540
#column2 ul li a.active:hover,
541541
#column2 ul li a.active:focus {
542-
color: #43853d;
543-
border-radius: 0;
544-
border-bottom: 1px solid #43853d;
542+
font-weight: 700;
543+
color: #fff;
545544
background-color: transparent;
546545
}
547546

0 commit comments

Comments
 (0)