Skip to content

Commit 68548fd

Browse files
committed
doc: fix color contrast for anchor marks in dark mode
Currently, in its dark mode, our website background color is #090C15 and our anchor marks are #707070 for a contrast ratio of 3.94 to 1, falling short of the WCAG AA 4.5 to 1. This changes the mark color in dark mode only to #7A7A7A for a color contrast of 4.55 to 1. PR-URL: #39168 Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 8703d22 commit 68548fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api_assets/style.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
--color-fill-app: var(--white);
3333
--color-fill-side-nav: var(--gray6);
3434
--color-links: var(--green1);
35+
--color-text-mark: var(--gray1);
3536
--color-text-nav: var(--gray3);
3637
--color-text-primary: var(--gray6);
3738
--color-text-secondary: var(--green2);
@@ -42,6 +43,7 @@
4243
--color-fill-app: var(--black1);
4344
--color-fill-side-nav: var(--black3);
4445
--color-links: var(--green5);
46+
--color-text-mark: var(--gray5);
4547
--color-text-primary: var(--white);
4648
}
4749

@@ -632,7 +634,7 @@ a code {
632634

633635
span > .mark,
634636
span > .mark:visited {
635-
color: #707070;
637+
color: var(--color-text-mark);
636638
position: absolute;
637639
top: 0;
638640
right: 0;

0 commit comments

Comments
 (0)