Skip to content

Dynamic Type (AX3+): board header clips difficulty/timer + digit-pad glyphs render blank #540

Closed

Description

@wei18

Summary

At large Dynamic Type (Accessibility sizes AX3 extra-extra-large and above), the Sudoku board screen has several layout/legibility breakages. Found in Phase 3 interactive UX audit (test cases #22/#23, iPhone 17 Pro sim, current main).

Observations (screenshots captured)

At content_size accessibility-extra-extra-large (AX3) and …-extra-extra-extra-large (AX5):

  1. Difficulty label clipped/off-screen. The header difficulty label ("Medium") has a negative-x a11y frame (x0=-19 at AX3, x0=-37 at AX5) and is visually clipped to "ledium" (AX5) or not visible at all (AX3).
  2. Timer + Close clip. "Elapsed time" frame also starts at negative x (x0=-15); the Close ✕ is partially cut at the top-right.
  3. Board clips at the left edge — leftmost column cells are cut off.
  4. Digit pad 1–9 render BLANK — at AX3/AX5 the digit-pad buttons show as empty rounded pills with no visible digit glyphs (they show blue "1"–"9" at default size). a11y labels ("Digit 1"…"Digit 9") and tap-target frames (44×77pt, ≥44 ✓) are intact, so the buttons are hittable but the player cannot see which digit is which — the pad is effectively unusable.

Scope

Likely cause / direction

Header HStack (difficulty · timer · pause) and the digit-pad Text glyphs don't accommodate accessibility text sizes — needs a layout that wraps/scales (e.g. ViewThatFits, .minimumScaleFactor, or vertical reflow) instead of overflowing horizontally. Mirror any fix to Minesweeper (shared board chrome / digit pad pattern) — verify whether MS shows the same.

Accessibility / App Store readiness item. Severity: medium (Dynamic Type is a common accessibility setting; blank digit pad is a functional blocker for those users).

Activity

  1. added
    backlog
    on Jun 16, 2026
  2. wei18 commented on Jun 17, 2026

    @wei18
    OwnerAuthor

    Leader sim-verify (iPhone 17 Pro, fix/540 build): the fix is INEFFECTIVE on device. At both AX3 (extra-extra-large) and AX5 (extra-extra-extra-large):

    • Header difficulty still clips to "ledium"/"edium" off the left edge (a11y frame Medium x0=-19 at AX3 / -37 at AX5, identical to pre-fix) — the AX-gated two-row reflow does NOT fire.
    • Digit pad 1–9 still render BLANK (empty pills, no glyph) — .minimumScaleFactor(0.5) did not help.

    Important: dynamicTypeSize DOES reach the board (board cell numbers and the header label are visibly enlarged at AX), so it's not an env-propagation problem — the reflow gate / digit fix logic is itself not working at runtime. The snapshot test passed only because it injected DynamicTypeSize.accessibility3 directly into the NSHostingView, bypassing real rendering. Needs a sim-verified fix.

  3. wei18 commented on Jun 17, 2026

    @wei18
    OwnerAuthor

    Round-3 (ViewThatFits + maxHeight:28 + minimumScaleFactor(0.3)) also fails on the sim — header difficulty still clips, digit pad 1–9 still blank at AX5.

    Real root cause (Leader, after 3 rounds): minimumScaleFactor is width-driven — it shrinks text that's too WIDE. A single digit "5" at AX5 overflows VERTICALLY (glyph ~45–60pt tall), so minimumScaleFactor never triggers, and .frame(maxHeight: 28) just CLIPS the tall glyph to nothing → blank pill. Same for the header: the labels scale tall and ViewThatFits doesn't switch to two-row because minimumScaleFactor(0.6) lets the single row "fit" by shrinking width.

    Correct fix direction: cap the dynamic type size of the board chrome (header) and the digit pad so they don't scale into clipping — e.g. .dynamicTypeSize(...DynamicTypeSize.xLarge) on the digitRow and the header. Default .large and below are unaffected (caps only apply ABOVE xLarge), so existing snapshots stay byte-identical. The board CELLS should keep scaling (puzzle readability); only the compact chrome/pad needs the cap. This is the standard approach for compact numeric controls. Verify on-device (not via injected-env snapshot).

    Three subagent rounds couldn't converge because the implementer cannot sim-verify the runtime rendering; needs a hands-on sim-iterate pass with the cap approach above.

  4. added 3 commits that reference this issue on Jun 17, 2026
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

    backlog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions