Skip to content

fix(a11y): dark-mode white-on-accent AA failures beyond #786 — DigitPad armed digit, completion/pause prominent buttons, mine glyph #797

Closed

Description

@wei18

What

#786 fixed the MS mode-toggle's dark-mode AA failure (white on accent.primary). The same audit found sibling white-on-accent surfaces that fail AA in dark mode and were reported-not-fixed (out of #786 scope):

  • Sudoku DigitPadView.swift:143/221/259 — armed digit: .borderedProminent + tint(accent.primary) relies on system default white label; dark = white on 0x9BB87E (sage) = 2.20:1.
  • Shared CompletionOverlayScaffold.swift:90/111 and PauseOverlayView.swift:69 — same prominent+tint pattern.
  • MS MinesweeperCellButton.swift:239 — detonated-mine glyph .white on the mineHit color (ratio unverified).

Fix direction

Adopt #786's resolution: on-accent ink = theme.surface.primary (light surface in light mode, dark surface in dark mode) — verified 5.70:1 light / 6.96:1 dark on the MS blue ramp; re-verify per ramp (Sudoku sage differs). Prominent buttons need an explicit .foregroundStyle, not the system default.

Verification

Per-surface WCAG ratio script (see #786 PR body for the formula) + snapshot re-records + eyeball; both apps (mirror rule).

Surfaced by the #786 implementation pass.

Activity

  1. added
    bug
    on Jul 13, 2026
  2. wei18 commented on Jul 13, 2026

    @wei18
    OwnerAuthor

    🔒 Claiming: queued in this session right after #796 lands (same MinesweeperKit test/snapshot domain, serialized deliberately; session 2026-07-13). Other agents: please don't pick this up concurrently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions