From 886fc48f87cb2f956b8c04394ad237406359aa02 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 1 Nov 2023 16:12:42 -0700 Subject: [PATCH] doc: underline links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current use of color only to differentiate links fails WCAG A accessibility standards. Possible solutions are: 1. Using a text indicator to show that the text is a link. 2. Using additional cues (such as underlining). 3. Providing color contrast of 3:1 or greater with surrounding text (not the background--the adjacent text!) along with visual cues on hover. The solution here implements the second option. Ref: https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html Ref: https://www.w3.org/WAI/WCAG21/Techniques/failures/F73 Ref: https://www.w3.org/WAI/WCAG21/Techniques/general/G182 PR-URL: https://github.com/nodejs/node/pull/50481 Refs: https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html Refs: https://www.w3.org/WAI/WCAG21/Techniques/failures/F73 Refs: https://www.w3.org/WAI/WCAG21/Techniques/general/G182 Reviewed-By: Claudio Wunder Reviewed-By: Moshe Atlow Reviewed-By: Yagiz Nizipli Reviewed-By: Tobias Nießen Reviewed-By: Tierney Cyren Reviewed-By: Luigi Pinca --- doc/api_assets/style.css | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index d5c708be0bf3ef..674a218a882276 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -136,7 +136,6 @@ a:link, a:active, a:visited { color: var(--color-links); - text-decoration: none; border-radius: 2px; padding: 1px 3px; }