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
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.
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).
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
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).
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).
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
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"
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'sdefect-note(MESSAGE:5a8de8d0) surfaced during the review of#21778(#21741, merged at326f662725).Neo.board.Card(resources/css/src/board/Card.css:98,123) uses--neo-board-card-muted-colorfor.neo-board-card-text(0.9emnormal-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-colorat>= 4.5:1on both resting and.neo-selectedcards, whiletheme-darkandtheme-neo-darkfall below WCAG 2.2 SC 1.4.3 (4.5:1):resources/css/theme-*/board/Container.css)--neo-board-card-background--neo-board-card-selected-background--neo-board-card-muted-colortheme-darkvar(--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#6b72804.83:1(pass)4.53:1(pass)theme-light#ffffffrgb(80.80%, 90.83%, 98.89%)(#cee8fc)var(--panel-header-text-color, #666)5.74:1(pass)4.53:1(pass)theme-cyberpunk#0d1117color-mix(in srgb, #00d2ff 12%, #0d1117)color-mix(in srgb, #c9d1d9 65%, #0d1117)5.71:1(pass)4.64:1(pass)The Problem
theme-darkfails on both resting and selected cards (3.72:1/2.46:1):resources/css/theme-dark/board/Container.css:31hard-codes--neo-board-card-muted-color: #999(instead of an existingtheme-darktoken per#20879AC-5), and:28maps--neo-board-card-selected-backgroundto--grid-cellrowmodel-selected-row-cell-background-color(#4f558a), a mid-lightness slate-purple that leaves--neo-board-card-color: #e0e0e0at5.30:1and makes#999unreadable at2.46:1.theme-neo-darkdips below4.5:1on selected cards (4.38:1):resources/css/theme-neo-dark/board/Container.css:32sets--neo-board-card-muted-color: #8b97a8, which passes on#1c2432(5.26:1) and falls just below4.5:1on--neo-board-card-selected-background: #1e3346(4.38:1).MultiSelect.spec.mjshad to carry a temporaryif (neighbourUnhovered.mutedContrast >= 4.5)guard:test/playwright/e2e/board/MultiSelect.spec.mjs:207-210skips the>= 4.5assertion fordarkandneo-darkuntil those two theme files meet4.5:1.The Architectural Reality
resources/css/theme-dark/board/Container.cssandresources/css/theme-neo-dark/board/Container.cssown the board's per-theme CSS custom properties;resources/css/src/board/Card.cssconsumes them without naming colors (#20879: "No new colour is invented where a token of the theme exists").resources/css/theme-dark/grid/Container.css:5already defines--grid-cell-value-band-1-background-color: #2d3e50(dark-blue slate intheme-dark's register) andresources/css/theme-dark/board/Container.css:4,17,20already usesvar(--neo-color, #bbb)(#bbbbbb), which measures5.53:1on resting#3c3f41and5.71:1on#2d3e50(with card title#e0e0e0at8.30:1).resources/css/theme-neo-dark/board/Container.css:21already defines#9aa6b8(--neo-board-badge-color, or#94a3b8), which lifts--neo-board-card-muted-colorto6.32:1on resting#1c2432and5.27:1on selected#1e3346(or6.08:1/5.06:1at#94a3b8) while keeping clear visual hierarchy below--neo-board-card-color: #e3e8f0(10.55:1).4.5:1for normal-sized text (#21371,#21741), and#20879AC-5("No new colour is invented where a token of the theme exists").The Fix
resources/css/theme-dark/board/Container.css(:28, :31):--neo-board-card-selected-backgroundtovar(--grid-cell-value-band-1-background-color, #2d3e50)(existingtheme-darktoken inresources/css/theme-dark/grid/Container.css:5, clearly distinct from resting#3c3f41and paired with--neo-board-card-selected-border-color: var(--grid-rowmodel-selected-cell-background-color, #64b5f6)).--neo-board-card-muted-colortovar(--neo-color, #bbb)(existingtheme-darktoken already used intheme-dark/board/Container.css:4,17,20), bringing muted contrast to5.53:1(resting) and5.71:1(selected).resources/css/theme-neo-dark/board/Container.css(:32):--neo-board-card-muted-colorfrom#8b97a8to#9aa6b8(matching--neo-board-badge-coloron:21,6.32:1resting /5.27:1selected) or#94a3b8(6.08:1/5.06:1), keeping clear secondary-text hierarchy beneath#e3e8f0(10.55:1).test/playwright/e2e/board/MultiSelect.spec.mjs(:164-210):coloredRest.mutedContrast >= 4.5andcoloredSelected.mutedContrast >= 4.5across all 5THEMES, and remove theif (neighbourUnhovered.mutedContrast >= 4.5)guard on:207-210socoloredSelectedHover.mutedContrast >= 4.5runs unconditionally for every theme.Decision Record impact: none.
Acceptance Criteria
AC-1(theme-dark&theme-neo-darkMuted-Text Contrast>= 4.5:1): In boththeme-darkandtheme-neo-dark,--neo-board-card-muted-colorachieves at least4.5:1WCAG contrast against both--neo-board-card-background(resting) and--neo-board-card-selected-background(.neo-selected), whiletheme-darkreuses existingtheme-darkCSS variables (#20879AC-5) and preserves clear visual distinction between resting and selected cards and between--neo-board-card-colorand--neo-board-card-muted-color.AC-2(Unconditional 5-Theme Playwright Assertion):test/playwright/e2e/board/MultiSelect.spec.mjsremoves theif (neighbourUnhovered.mutedContrast >= 4.5)guard and assertsmutedContrast >= 4.5across resting,.neo-selected, and.neo-selected:hoverstates in all 5 shipped themes (npx playwright test --config=test/playwright/playwright.config.e2e.mjs test/playwright/e2e/board/MultiSelect.spec.mjsfails ondevand passes on the branch).AC-3(Theme Guard & Before/After Frames):npm run check-theme-surfacesandtest/playwright/unit/board/pass, and the PR body embeds whole-page1440×900before (dev) and after (head) frames ofexamples/board/multiSelect(orexamples/board/basicshowing.neo-board-card-text) intheme-darkandtheme-neo-darkwith aFrame critique:line (rendered-surface-audit.md).Out of Scope
resources/css/src/board/Card.css,theme-neo-light,theme-light, ortheme-cyberpunk(all three already pass>= 4.5:1on resting and selected cards).--neo-board-*token names across all five theme files (check-theme-surfacesparity stays unchanged).Avoided Traps
#4f558a(--grid-cellrowmodel-selected-row-cell-background-color) intheme-darkand brightening--neo-board-card-muted-colorto#d2d2d2+: Reaching4.5:1on#4f558aforces muted text up to#d2d2d2(4.63:1), making muted body text almost indistinguishable from the#e0e0e0card title (5.30:1). Usingvar(--grid-cell-value-band-1-background-color, #2d3e50)+var(--neo-color, #bbb)keeps both contrast (5.71:1) and title/body hierarchy (8.30:1vs5.71:1).theme-dark/board/Container.csswheretheme-darktokens already exist: Violates#20879AC-5.Related
Refs
#20874(29sub-issues — past the~25sub-issue cap perticket-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'sdefect-noteMESSAGE:5a8de8d0.Live latest-open + closed sweep: checked latest 20 open issues (
#21779down to#21676,78open — red band; standalone contributor-ready bugfix promoted fromdefect-noteMESSAGE:5a8de8d0as#20874already holds29sub-issues) + open and closed searches (board card muted contrast,neo-board-card,Out of Scope/Avoided Trapsread on closed#20879,#21371,#21741) at2026-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 sourcedefect-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 inneomjs/neo(#21765,#21744,#21707,#21679,#21676,#21502,#20987,#20671), none overlapping (#21741closed 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"