Skip to content

Commit

Permalink
doc: fix color contrast issue in light mode
Browse files Browse the repository at this point in the history
Attributes are being highlighted as #f00 on a background of #f2f2f2.
That's a color contrast of 3.98:1, failing to meet the 4.5:1 requirement
of WCAG 2.1 AA. This changes the attribute color to #d00, which has a
color contrast of 5.09:1 meeting the 4.5:1 requirement.

PR-URL: #56272
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Claudio Wunder <[email protected]>
  • Loading branch information
Trott authored and aduh95 committed Dec 18, 2024
1 parent d62814d commit 53bc0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api_assets/hljs.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
color: #808080;
}
.hljs-attr {
color: #f00;
color: #d00;
}
.hljs-symbol,
.hljs-bullet,
Expand Down

0 comments on commit 53bc0c5

Please sign in to comment.