LearnNewsExamplesConnect
Frontmatter
assigneesbfs2021
createdAtNov 21, 2026, 2:40 PM
updatedAtNov 21, 2026, 4:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/21783
authorneo-gemini-julia
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 4:55 PM

Raise board card muted-text contrast to 4.5:1 in dark and neo-dark themes

Closed v14.0.0/archive-v14-0-0-chunk-6 bughelp wantedgood first issuedesignaiaccessibility
neo-gemini-julia
neo-gemini-julia commented on Nov 21, 2026, 2:40 PM

Please comment to claim before starting; check current assignees and linked PRs.

unowned-rationale: Ready for a contributor; maintainers provide planning and review.

Context

Promoted from @neo-opus-vega's defect-note (MESSAGE:5a8de8d0) surfaced during the review of #21778 (#21741, merged at 326f662725).

Neo.board.Card (resources/css/src/board/Card.css:98,123) uses --neo-board-card-muted-color for .neo-board-card-text (0.9em normal-sized body text) and .neo-board-card-menu-button, plus example metadata labels (examples/board/basic, multiSelect, swimlanes, cardEditor, columns, wipLimits). Across the five shipped board themes, three themes (neo-light, light, cyberpunk) keep --neo-board-card-muted-color at >= 4.5:1 on both resting and .neo-selected cards, while theme-dark and theme-neo-dark fall below WCAG 2.2 SC 1.4.3 (4.5:1):

Theme (resources/css/theme-*/board/Container.css) Resting --neo-board-card-background Selected --neo-board-card-selected-background --neo-board-card-muted-color Resting contrast Selected contrast
theme-dark var(--grid-container-cell-background-color, #3c3f41) var(--grid-cellrowmodel-selected-row-cell-background-color, #4f558a) #999 (:31) 3.72:1 (fail) 2.46:1 (fail)
theme-neo-dark #1c2432 (:26) #1e3346 (:29) #8b97a8 (:32) 5.26:1 (pass) 4.38:1 (fail)
theme-neo-light #ffffff #eefaf8 #6b7280 4.83:1 (pass) 4.53:1 (pass)
theme-light #ffffff rgb(80.80%, 90.83%, 98.89%) (#cee8fc) var(--panel-header-text-color, #666) 5.74:1 (pass) 4.53:1 (pass)
theme-cyberpunk #0d1117 color-mix(in srgb, #00d2ff 12%, #0d1117) color-mix(in srgb, #c9d1d9 65%, #0d1117) 5.71:1 (pass) 4.64:1 (pass)

The Problem

  1. theme-dark fails on both resting and selected cards (3.72:1 / 2.46:1): resources/css/theme-dark/board/Container.css:31 hard-codes --neo-board-card-muted-color: #999 (instead of an existing theme-dark token per #20879 AC-5), and :28 maps --neo-board-card-selected-background to --grid-cellrowmodel-selected-row-cell-background-color (#4f558a), a mid-lightness slate-purple that leaves --neo-board-card-color: #e0e0e0 at 5.30:1 and makes #999 unreadable at 2.46:1.
  2. theme-neo-dark dips below 4.5:1 on selected cards (4.38:1): resources/css/theme-neo-dark/board/Container.css:32 sets --neo-board-card-muted-color: #8b97a8, which passes on #1c2432 (5.26:1) and falls just below 4.5:1 on --neo-board-card-selected-background: #1e3346 (4.38:1).
  3. MultiSelect.spec.mjs had to carry a temporary if (neighbourUnhovered.mutedContrast >= 4.5) guard: test/playwright/e2e/board/MultiSelect.spec.mjs:207-210 skips the >= 4.5 assertion for dark and neo-dark until those two theme files meet 4.5:1.

The Architectural Reality

  • resources/css/theme-dark/board/Container.css and resources/css/theme-neo-dark/board/Container.css own the board's per-theme CSS custom properties; resources/css/src/board/Card.css consumes them without naming colors (#20879: "No new colour is invented where a token of the theme exists").
  • resources/css/theme-dark/grid/Container.css:5 already defines --grid-cell-value-band-1-background-color: #2d3e50 (dark-blue slate in theme-dark's register) and resources/css/theme-dark/board/Container.css:4,17,20 already uses var(--neo-color, #bbb) (#bbbbbb), which measures 5.53:1 on resting #3c3f41 and 5.71:1 on #2d3e50 (with card title #e0e0e0 at 8.30:1).
  • resources/css/theme-neo-dark/board/Container.css:21 already defines #9aa6b8 (--neo-board-badge-color, or #94a3b8), which lifts --neo-board-card-muted-color to 6.32:1 on resting #1c2432 and 5.27:1 on selected #1e3346 (or 6.08:1 / 5.06:1 at #94a3b8) while keeping clear visual hierarchy below --neo-board-card-color: #e3e8f0 (10.55:1).
  • Design authority: WCAG 2.2 SC 1.4.3, Contrast (Minimum): 4.5:1 for normal-sized text (#21371, #21741), and #20879 AC-5 ("No new colour is invented where a token of the theme exists").

The Fix

  1. resources/css/theme-dark/board/Container.css (:28, :31):
    • Point --neo-board-card-selected-background to var(--grid-cell-value-band-1-background-color, #2d3e50) (existing theme-dark token in resources/css/theme-dark/grid/Container.css:5, clearly distinct from resting #3c3f41 and paired with --neo-board-card-selected-border-color: var(--grid-rowmodel-selected-cell-background-color, #64b5f6)).
    • Point --neo-board-card-muted-color to var(--neo-color, #bbb) (existing theme-dark token already used in theme-dark/board/Container.css:4,17,20), bringing muted contrast to 5.53:1 (resting) and 5.71:1 (selected).
  2. resources/css/theme-neo-dark/board/Container.css (:32):
    • Lift --neo-board-card-muted-color from #8b97a8 to #9aa6b8 (matching --neo-board-badge-color on :21, 6.32:1 resting / 5.27:1 selected) or #94a3b8 (6.08:1 / 5.06:1), keeping clear secondary-text hierarchy beneath #e3e8f0 (10.55:1).
  3. test/playwright/e2e/board/MultiSelect.spec.mjs (:164-210):
    • Assert coloredRest.mutedContrast >= 4.5 and coloredSelected.mutedContrast >= 4.5 across all 5 THEMES, and remove the if (neighbourUnhovered.mutedContrast >= 4.5) guard on :207-210 so coloredSelectedHover.mutedContrast >= 4.5 runs unconditionally for every theme.

Decision Record impact: none.

Acceptance Criteria

  • AC-1 (theme-dark & theme-neo-dark Muted-Text Contrast >= 4.5:1): In both theme-dark and theme-neo-dark, --neo-board-card-muted-color achieves at least 4.5:1 WCAG contrast against both --neo-board-card-background (resting) and --neo-board-card-selected-background (.neo-selected), while theme-dark reuses existing theme-dark CSS variables (#20879 AC-5) and preserves clear visual distinction between resting and selected cards and between --neo-board-card-color and --neo-board-card-muted-color.
  • AC-2 (Unconditional 5-Theme Playwright Assertion): test/playwright/e2e/board/MultiSelect.spec.mjs removes the if (neighbourUnhovered.mutedContrast >= 4.5) guard and asserts mutedContrast >= 4.5 across resting, .neo-selected, and .neo-selected:hover states in all 5 shipped themes (npx playwright test --config=test/playwright/playwright.config.e2e.mjs test/playwright/e2e/board/MultiSelect.spec.mjs fails on dev and passes on the branch).
  • AC-3 (Theme Guard & Before/After Frames): npm run check-theme-surfaces and test/playwright/unit/board/ pass, and the PR body embeds whole-page 1440×900 before (dev) and after (head) frames of examples/board/multiSelect (or examples/board/basic showing .neo-board-card-text) in theme-dark and theme-neo-dark with a Frame critique: line (rendered-surface-audit.md).

Out of Scope

  • Changes to resources/css/src/board/Card.css, theme-neo-light, theme-light, or theme-cyberpunk (all three already pass >= 4.5:1 on resting and selected cards).
  • Adding new --neo-board-* token names across all five theme files (check-theme-surfaces parity stays unchanged).

Avoided Traps

  • Keeping #4f558a (--grid-cellrowmodel-selected-row-cell-background-color) in theme-dark and brightening --neo-board-card-muted-color to #d2d2d2+: Reaching 4.5:1 on #4f558a forces muted text up to #d2d2d2 (4.63:1), making muted body text almost indistinguishable from the #e0e0e0 card title (5.30:1). Using var(--grid-cell-value-band-1-background-color, #2d3e50) + var(--neo-color, #bbb) keeps both contrast (5.71:1) and title/body hierarchy (8.30:1 vs 5.71:1).
  • Inventing raw hex colors in theme-dark/board/Container.css where theme-dark tokens already exist: Violates #20879 AC-5.

Related

Refs #20874 (29 sub-issues — past the ~25 sub-issue cap per ticket-create §10, so linked by reference rather than native sub-issue) · Follow-up to #21741 / PR #21778 · Sibling to #21371 · Promoted from @neo-opus-vega's defect-note MESSAGE:5a8de8d0.

Live latest-open + closed sweep: checked latest 20 open issues (#21779 down to #21676, 78 open — red band; standalone contributor-ready bugfix promoted from defect-note MESSAGE:5a8de8d0 as #20874 already holds 29 sub-issues) + open and closed searches (board card muted contrast, neo-board-card, Out of Scope / Avoided Traps read on closed #20879, #21371, #21741) at 2026-11-21T13:38Z; no equivalent or prior exclusion found. A2A in-flight claim sweep: checked latest 30 messages across all read-states (12:08Z–13:38Z); only @neo-opus-vega's source defect-note (MESSAGE:5a8de8d0) touches --neo-board-card-muted-color, with zero competing [lane-claim] or [lane-intent]. MC sweep: "neo-board-card-muted-color theme-dark 999 3.72 2.46 contrast neo-selected board card text" (5 results) + ask_knowledge_base (type: 'ticket', 5 refs), no conflicting decision found. Own-assignment sweep: 7 open in neomjs/neo (#21765, #21744, #21707, #21679, #21676, #21502, #20987, #20671), none overlapping (#21741 closed via #21778).

Origin Session ID: 664ca229-4bbd-4e00-ae41-008707688181 Retrieval Hint: "neo-board-card-muted-color theme-dark 999 3.72 2.46 neo-dark 4.38 MultiSelect contrast"

bfs2021
bfs2021 Nov 21, 2026, 3:26 PM

C:/Program Files/Git/claim

@github-actions - 2026-11-21T14:27:04Z

@bfs2021, if you'd like to work on this issue, comment /claim. The bot will check availability and confirm the result.

How claims work [QUARANTINED_URL: github.com]

bfs2021 cross-referenced by PR #21786 on Nov 21, 2026, 3:30 PM