gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain4099e64aMerge branch 'font-segoe-ui' into mainAtlasmain/reports/006-tap-sizes.md

6.5 KB

  1. # layouts mission 006 — tap sizes in the shared theme — DONE (not merged, not deployed, not pushed)
  2. Branch w6-tap-sizes (from 3d4f8e1). Commit: see `git log -1` of the branch (hash in the LOG line).
  3. ## What changed
  4. - `theme/theme.hl`: new layout token `layoutTap = 2.75rem` (44 px). `button, .button` minWidth + minHeight = layoutTap (was minHeight 2.25rem); inputs/selects/textareas
  5. minHeight layoutTap + fontSize 1rem (16 px); checkbox/radio 1.25rem, their wrapping `label` is a flex row of layoutTap; `summary` min 44; links that ARE the item
  6. (`li > a:first-child`, `.links a`, `.row > a`, `.crumbs a`) are inline-flex 44; component rules: pagination + md-editor toolbar buttons min 44, file(s)-upload
  7. `label.choose` 44. Desktop denser ON PURPOSE: one `@media (min-width: 60rem)` block (buttons 2.25rem) + the shells' own desktop rules.
  8. - `theme/shell/*`: header icon buttons / user toggle / sidebar close 2.5rem → layoutTap (negative margins −.625rem keep the 24 px glyph flush with the column);
  9. brand `lineHeight` 44 (ellipsis kept); header search input 44 (desktop 2.25rem); main-menu / sidebar nav / user-menu items 44 (desktop header menu 2.25rem);
  10. list-first/three-pane list links and `a.back` 44.
  11. - Showcase (own code): accent-switcher swatches/reset 44; the `readme`/crumb paragraphs get class `links`; mail-demo crumb `a.back`.
  12. - docs/design-rules.md: section "Tap size".
  13. - Tests: `tests/taps-audit.mjs` (the in-page audit, shared), `tests/taps.mjs` (standalone: 22 pages × open states at 390, lists offenders),
  14. `tests/browser.mjs`: +33 checks "390 <page> <state>: N tap targets, none under 44 px, no field under 16 px, nothing wider than the screen" (9 pages × closed /
  15. sidebar / user menu / search open) and the server wait raised to 400 s (loaded machine); the old css-string check now includes `min-width:var(--layout-tap)`.
  16. ## Numbers (390 px, real headless Chrome, DOM, 82 audits = 22 pages + their open states)
  17. Audit = every visible a[href], button, summary, select, textarea, input, [role=button|tab|menuitem], label.choose; checkbox/radio measured by the bigger of control/label;
  18. `pointer-events:none` skipped (the pagination "…" gap); links inside a sentence counted separately ("inline").
  19. | | old theme (3d4f8e1) | new |
  20. |---|---|---|
  21. | tap targets < 44 px (non-inline), all 82 audits | **1358** | **0** |
  22. | of those on the 22 closed pages (list below) | 210 | 0 |
  23. | inline-in-sentence links < 44 (exempt) | 72 | 16 |
  24. | elements wider than 390 / scrollWidth ≠ 390 / inputs < 16 px | 0 / 0 / 0 | 0 / 0 / 0 |
  25. Per page, closed state (taps<44 / all targets): `/` 6/56→0, `/elements` 23/61→0, `/components` 4/50→0, `/shells` 4/43→0, `/docs` 16/52→0, month-view 7/43→0, date-picker 8/48→0,
  26. range-picker 7/45→0, pagination 11/48→0, md-editor 29/94→0, code-editor 5/41→0, file-upload 6/43→0, modal 7/47→0, comments 29/122→0, files-upload 6/43→0,
  27. content-first 12/24→0, content-first/movie 7/19→0, list-first 3/13→0, list-first/trip 3/13→0, three-pane 4/20→0, three-pane/m2 9/25→0, search/modal 4/41→0; scrollWidth 390 everywhere.
  28. Raw: /media/STORAGE/claude-scratch/atlas/L2/taps-before.txt, taps-after.txt (per page and per open state, with sizes: old header icons 40×40, brand 158×26.4, buttons 36, nav links 38.4).
  29. The 16 remaining inline ones: md-editor 2, comments 1, home 1 … links inside paragraphs (exempt, WCAG 2.5.8); counted, not hidden.
  30. Gates: old layouts gate **99/0** → new **132 passed, 0 failed** (99 + 33 new). New code against the OLD theme/components (3d4f8e1's theme/ + components/, new tests): **98 passed,
  31. 34 failed** — all 33 new tap checks FAIL (e.g. "390 /elements: 61 tap targets, none under 44 px … menu-toggle 40×40, brand 26.4 …") + the stylesheet-string check. `node theme/check-theme.mjs .` 0 problems before and after
  32. (it scans app code for colours/borders/radii; it has no size check — the size check lives in the browser gate, because a size is only known from the DOM).
  33. ## Overrides that become redundant (apps NOT edited; the re-copy is the next mission)
  34. gitoria `components/styles.hl` (all measured against the new theme):
  35. - 21–23 `html button, html .button { minHeight 2.75rem }` — redundant (theme: min 44). Note: gitoria's rule also keeps 44 on desktop; without it buttons are 2.25rem at ≥ 60rem (the theme's deliberate density) — delete unless gitoria wants 44 on desktop.
  36. - 24–27 `html application-header > button, html user-menu > button, html app-sidebar > button.sidebar-close { width/height 2.75rem }` — redundant for those three selectors; **`html ident-menu > button.ident-toggle` stays** (the app's own component) — the selector must remain in a trimmed rule.
  37. - 28–29 `html application-header > a.brand { lineHeight 2.75rem }` — redundant (theme has the same line-height).
  38. - 30–31 `html input, html select { minHeight 2.75rem }` — redundant. 32–34 `html input, select, textarea { fontSize 1rem }` — redundant.
  39. - 35–37 `html main-menu a, html user-menu > nav a, html user-menu > nav button { display flex; alignItems center; minHeight 2.75rem }` — redundant.
  40. - NOT redundant (app's own markup): 42, 56 (ident-toggle margin; should become −.625rem like the theme's user toggle), 66–68 ident-selector parts, 121, 130, 191, 196, 204, 222, 234–235, 243, 248, 262, 265 (own components/lists).
  41. tracker `components/styles.hl`: it carries **no** override of the theme's sizes — nothing becomes redundant. BUT the new theme's `minWidth: 2.75rem` on every `button` hits tracker's own small buttons at re-copy
  42. (they set width but not minWidth): `button.checkicon` 205 (2rem, minHeight 0 → becomes 44 wide, 32 high), `button.mv` 300 (2.4rem → 44), `button.chip` 294, `button.sortbtn` 282, `button.showall` 159 (padding .15rem → 44 high),
  43. `button.follow` 117, `ident-menu > button.ident-toggle` 58 (2.5rem, minHeight 0 → 44 × 40). The re-copy mission must set these to 44 deliberately (ident-toggle → 2.75rem) or give them `minWidth = '0'` + a reason.
  44. ## What is left / caveats
  45. - Looked at no PNGs (cannot); layout checked through numbers: gate 1280 checks (header flush with the column to 1 px) still pass, no sideways scroll at 390.
  46. - `li > a:first-child` also makes a link at the start of a prose list item a 44 px inline-flex line (taller line) — accepted: a list item that starts with a link is a tap row. A link inside a sentence stays small.
  47. - `.row > a`, `.links a`, `.crumbs a` are opt-in classes; apps with other link rows must add one of them.
  48. - Desktop (≥ 60rem) buttons/menu links 2.25rem are deliberate; icon buttons stay 44 everywhere (header is 52 px).
  49. - No Hybriel gap hit. Ports used: 8760–8764 only; nothing of mine listens (ss checked).

Branches

Latest commits

  • 4099e64aMerge branch 'font-segoe-ui' into mainAtlas
  • e14fb795|||PR Theme font: Segoe UI first (his choice 2026-11-19)Atlas
  • 44071d2cMerge branch 'hl-standard-5' into mainAtlas
  • 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
  • 2752ceddMerge branch 'hl-standard-4' into mainAtlas
  • ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
  • 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
  • 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
  • ab54a39dMerge branch 'hl-standard' into mainAtlas
  • 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
  • 220c8fa4Merge branch 'readme-audit' into mainAtlas
  • b78fb85a|||PR README matches the codemre
  • 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
  • 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
  • b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
  • ebd00b6cNest caller slot styles in three-panemre
  • 009991efNest caller slot styles in list-firstmre