From c1b78da42c5578fcc581026db9953243966689a5 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 18 Dec 2024 08:19:08 -0800 Subject: [PATCH] doc: fix color contrast issue in light mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/56272 Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Claudio Wunder --- doc/api_assets/hljs.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api_assets/hljs.css b/doc/api_assets/hljs.css index 86bd405709276c..91cece59e7cced 100644 --- a/doc/api_assets/hljs.css +++ b/doc/api_assets/hljs.css @@ -49,7 +49,7 @@ color: #808080; } .hljs-attr { - color: #f00; + color: #d00; } .hljs-symbol, .hljs-bullet,