Skip to content

Commit 88a1ad8

Browse files
committed
fix(a11y): improve contrast of version label in sidebar
The "Nextcloud" and version text in the bottom-left sidebar panel used #0082c9 on a #272525 background, giving a contrast ratio of ~3.7:1. WCAG AA requires 4.5:1 for normal-weight text. Switching to white (#fff) brings the ratio to ~15:1. Fixes #9676 Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent c5c2990 commit 88a1ad8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_shared_assets/static/custom.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ h6 {
5353
.rst-versions .rst-current-version {
5454
display: flex;
5555
align-items: center;
56-
color: #0082c9;
56+
/* Use white instead of #0082c9 — the NC blue at 3.7:1 on the dark
57+
#272525 sidebar background fails WCAG AA (4.5:1 required). */
58+
color: #fff;
5759
}
5860
.rst-versions .rst-current-version .fa-caret-down {
5961
margin-left: 5px;

0 commit comments

Comments
 (0)