Dark themes: primary buttons are white on light teal — contrast 2.0–2.3:1 (hardcoded #fff on a lightened --glacier) #691
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#691
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the #656 QA pass, §3 UI consistency audit (v0.6.247, files). Themes were switched via Appearance, which is a per-browser pref.
Style-guide rule: tokens drive colour ("Hardcoded colors in new work are wrong unless they carry a var() with a fallback"). Primary =
--glacierfill with white text. The dark themes lighten--glacier, but the text stays a hardcodedrgb(255,255,255)(button.primary, label.btn.primary {color: #fff}, and the same for.btn.dangerbtn,#avatarbtnand.copied-bubble).Measured on the "Upload file" primary:
dark)black)WCAG AA for 13px text needs 4.5:1. In all four dark themes the primary action label is hard to read (see the pale "Upload file" in the screenshots).
Fix direction: an
--on-accenttoken per theme (dark ink on the lightened accent) used for primary/danger text instead of#fff.Related static scan: about 100 colour declarations in the live stylesheet don't go through
var(). Most are deliberate state tints, but a few are off-token Tailwind greys that won't follow the themes:.rochip {background:#e5e7eb; color:#374151},ul.plainlist .muted/.empty {color:#6b7280}, and.kvbadge.good/.tealfixed tints. No light surface bled through in the dark themes on the surfaces I checked (file list, pane, Shares, 7 admin panes).Screenshots:
656-theme-night.jpg,656-theme-dusk.jpg,656-theme-ebony.jpg,656-theme-slate.jpg