gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf77b7d12f77b7d12Media player: re-sync components from 1c41293 (replay / forward 10 icons, play button surface on audio and video)mref77b7d12/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

  • f77b7d12Media player: re-sync components from 1c41293 (replay / forward 10 icons, play button surface on audio and video)mre
  • 40a9e69cMP: report, LOG linemre
  • 5b5dbf0fMedia player: the component from components.hybriel dd003e5 (sync-components), the showcase page /components/media-player with a queue, its media files served with ranges (lib/media.hl), theme rules (the seek bar, the queue's current item, the radii), the page in the overview listsmre
  • 9197159fTake components e54f83a: table lines and one-row desktop toolbar in the theme, Table button gates, a table in the md-editor demomre
  • e6322a44UX: report and LOG linemre
  • 58c2da6fUX: nav marker without bars; chat composer is one box (files-upload pick mode, showcase); comments state footer + closer reactions row; modal footer rule only for its own footer; gates for all of itmre
  • 956f107async components.hybriel 4922f9c: 44 px targets in month-view, date-picker, range-picker, pagination, modal, comments; names follow <html lang> (English default), UTC weekday fix; gate: 390 px target checks, 'edited' hit-area padding; comments showcase 'You are' is a labelled group (SY)mre
  • 49940371sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 6f7bd392gate: the phone toolbar is two even rows (E2)mre
  • 3049c082sync components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
  • b9a3f85fLOG: MLmre
  • 7979397creport ML-mobilemre
  • 85d2ed25gate: wordingmre
  • 98a311c0gate: 390 px checks for list rows, table word, edited tap target, code in titlesmre
  • 769b99d7theme: table cells keep a word whole, code in a title stays text-sized, 'edited' is a 44 px tap target on the phonemre
  • c36b7595list rows (notes, mail) stack their parts full width: the date no longer a one-letter column beside the titlemre
  • 02aa74aasync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
  • 268b1c87sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre
  • c51d039fsync components.hybriel 8d79ff7: bubble hugs its content, quiet 'edited' label; gate checksmre
  • f4ad7eecsync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre