Skip to content

Commit 7dbcd24

Browse files
Trottruyadorno
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 <daijiro.wachi@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 331142c commit 7dbcd24

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)