Skip to content

Commit 044e0c4

Browse files
committed
fix(a11y): underline content links to avoid color-only differentiation
RTD theme removes underlines from links (text-decoration: none), so content links are distinguished from surrounding text by color alone. The contrast between link blue and body text is below 3:1, which fails WCAG 1.4.1 / BITV 9.1.4.1 when color is the sole indicator. Adding text-decoration: underline provides a non-color visual cue, satisfying the requirement without changing any color values. Fixes #9673 Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent c5c2990 commit 044e0c4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

_shared_assets/static/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ h6 {
1717
background-color: #0082c9;
1818
}
1919

20+
/* Links in the content area must be distinguishable from body text
21+
without relying on color alone (WCAG 1.4.1 / BITV 9.1.4.1).
22+
RTD theme sets text-decoration: none, so underline is the simplest
23+
non-color indicator that satisfies the requirement. */
24+
.rst-content a {
25+
text-decoration: underline;
26+
}
27+
2028
/* Reduce size of logo in top left */
2129
.wy-side-nav-search > a img.logo {
2230
max-width: 180px;

0 commit comments

Comments
 (0)