chrome, menu: the rail's account row and menubar titles are 44px on touch
Fable on c56314e, LOW: "44px in every app" was not yet true. The rail's account row (Fichas) stayed 40px, and menubar titles outside the wide stacked header (Sheets' and Slides' menu rows, and the narrow stacked bar's second row) stayed 32px on a coarse pointer. Both are 44px there now. The narrow stacked bar publishes the taller row without script, 97px (calc(3.25rem + 2.75rem + 1px)); chrome.js publishes the measured height, as before. The wide stacked header keeps its 24px titles with 44px of hit area. Nothing changes for a pointer that hovers (TestTheRemainingTouchTargetsAre44px; mainChromeCSS and mainMenuCSS updated for these two rules).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+36
−6
README.md+2 −1chrome/chrome.css+9 −0chrome/compact_test.go+17 −0chrome/unchanged_test.go+5 −4menu/menu.css+3 −1
CI passed — run details
CI log
=== modcache === all modules verified === vet === CGO_ENABLED=0 go vet ./... CGO_ENABLED=0 go vet -tags browser ./... === fmt === === build === CGO_ENABLED=0 go build -buildvcs=false ./... === go-test === CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/estilo.git/base 0.006s ok amadan.net/oficina/estilo.git/brand 0.003s ok amadan.net/oficina/estilo.git/busy 0.011s ok amadan.net/oficina/estilo.git/callui 0.009s ok amadan.net/oficina/estilo.git/chrome 1.071s ? amadan.net/oficina/estilo.git/cmd/oficina-notices [no test files] ok amadan.net/oficina/estilo.git/colophon 0.022s ok amadan.net/oficina/estilo.git/credits 0.007s ok amadan.net/oficina/estilo.git/credits/catalog 0.004s ok amadan.net/oficina/estilo.git/desk 0.004s ok amadan.net/oficina/estilo.git/googleimport 0.160s ok amadan.net/oficina/estilo.git/homeconnect 0.005s ok amadan.net/oficina/estilo.git/internal/lint 0.007s ? amadan.net/oficina/estilo.git/internal/tokencheck [no test files] ok amadan.net/oficina/estilo.git/menu 0.011s ok amadan.net/oficina/estilo.git/savestatus 0.139s ok amadan.net/oficina/estilo.git/side 0.141s ok amadan.net/oficina/estilo.git/sky 0.031s ok amadan.net/oficina/estilo.git/theme 0.014s ok amadan.net/oficina/estilo.git/typeface 0.329s === spacing === go run amadan.net/rastrillo/fiesta/cmd/fiesta@v1.7.0 spacing .
diff --git a/README.md b/README.md| index 31ceec0..04419a5 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -69,7 +69,8 @@ the app's script sets `estilo-bar-folded` on the header. In the trail, |
| `[estilo-bar-tool]` is a 44px round control and a `<details>` panel is a |
| drop-down from the bar's inline end with 44px rows. `menu.Item.Icon` |
| draws a glyph before a row's label. On a coarse pointer, in every app, |
| -the bar's triggers and every menu row are 44px, and where nothing hovers |
| +the bar's triggers, the rail's account row, every menu row and every |
| +menubar title are 44px, and where nothing hovers |
| menus show no shortcut hints. `savestatus` takes a third placement, |
| `subtitle`, for the state under a large title. |
diff --git a/chrome/chrome.css b/chrome/chrome.css| index 39edf1b..506774e 100644 |
| --- a/chrome/chrome.css |
| +++ b/chrome/chrome.css |
| @@ -246,6 +246,9 @@ |
| breakpoint): below the foot there is only the window's edge. Below |
| 800px the rail is a disclosure at the top of the page, with the page |
| under it and too little above, so the panel opens downward there. */ |
| +@media (pointer: coarse) { |
| + [estilo-account~="rail"] > [estilo-bar-trigger] { min-block-size: 2.75rem; } |
| +} |
| @media (min-width: 800px) { |
| [estilo-account~="rail"] > [estilo-account-panel] { |
| inset-block-start: auto; |
| @@ -505,6 +508,12 @@ |
| } |
| } |
| +/* On touch the menu row's titles are 44px (menu.css), so the narrow |
| + header is that much taller without script too. */ |
| +@media (max-width: 799.98px) and (pointer: coarse) { |
| + :root:has([estilo-bar~="stacked"]) { --estilo-bar-block-size: calc(3.25rem + 2.75rem + 1px); } /* 97px: the bar's row, a 44px menubar row and the bottom border. PUBLIC */ |
| +} |
| + |
| /* From 800px, the 56px stacked header: a 32px icon 12px in, and beside |
| it a 44px stack, the 24px title row (16px, 600) over the 20px menu row |
| (13px, muted), both starting at 56px (12 + 32 + 12). The app's name |
diff --git a/chrome/compact_test.go b/chrome/compact_test.go| index 45e2971..eaf5b5c 100644 |
| --- a/chrome/compact_test.go |
| +++ b/chrome/compact_test.go |
| @@ -332,6 +332,23 @@ func TestOnlyALinkedBrandTakesTheAccent(t *testing.T) { |
| } |
| } |
| +// On a coarse pointer the rail's account row and every menubar title |
| +// outside the wide stacked header are 44px too (Fable, item 5), and the |
| +// narrow stacked bar publishes the taller menu row. |
| +func TestTheRemainingTouchTargetsAre44px(t *testing.T) { |
| + src := string(CSS()) |
| + main := src[:strings.Index(src, barStackMarker)] |
| + if !regexp.MustCompile(`@media \(pointer: coarse\) \{[^}]*\[estilo-account~="rail"\] > \[estilo-bar-trigger\] \{ min-block-size: 2\.75rem; \}`).MatchString(main) { |
| + t.Error("the rail's account row is not 44px on touch") |
| + } |
| + if !regexp.MustCompile(`@media \(pointer: coarse\) \{[^@]*\[estilo-menubar-title\] \{ min-block-size: 2\.75rem; \}`).MatchString(string(menu.CSS())) { |
| + t.Error("menubar titles are not 44px on touch") |
| + } |
| + if !strings.Contains(src, "@media (max-width: 799.98px) and (pointer: coarse) {\n :root:has([estilo-bar~=\"stacked\"]) { --estilo-bar-block-size: calc(3.25rem + 2.75rem + 1px); }") { |
| + t.Error("the narrow stacked bar does not publish its 44px menu row on touch") |
| + } |
| +} |
| + |
| // A compact bar fits 360px with room for the title: Back, the lead and a |
| // two-button trail are 300px in the mock-up, and the bar's own padding |
| // and gaps are the small steps. |
diff --git a/chrome/unchanged_test.go b/chrome/unchanged_test.go| index cfb625c..6d93dd9 100644 |
| --- a/chrome/unchanged_test.go |
| +++ b/chrome/unchanged_test.go |
| @@ -92,11 +92,12 @@ const barStackMarker = "\n/* ── Bar stack" |
| // approved with its six answers): on a coarse pointer every bar trigger |
| // is 44px (--estilo-trigger-size 2.75rem) and every menu row 44px, and on |
| // a touch screen that cannot hover a menu shows no shortcut hints; a menu |
| -// row may carry an icon ([estilo-menu-icon]). Nothing changed for a |
| -// pointer that hovers. |
| +// row may carry an icon ([estilo-menu-icon]); and, after Fable's review |
| +// of c56314e, the rail's account row and every menubar title are 44px on |
| +// a coarse pointer too. Nothing changed for a pointer that hovers. |
| const ( |
| - mainChromeCSS = "19bdcab605b3e0069a8f76ac511c1c1323284b0cedb4da2b189161f92532a0d0" |
| - mainMenuCSS = "315318bae391ff677716f602822160deb1871470c32c323582465635dfa3350a" |
| + mainChromeCSS = "52435a1fee808fa6d20a1f32e823da9cf7eaac6a762963d45281361d316fea2c" |
| + mainMenuCSS = "a76fb85446799156a2debeb263bd6bfb4a57a358183e05d441d1f90953613896" |
| ) |
| // optInHooks are the attributes only a bar with a slot, a WideOnly or |
diff --git a/menu/menu.css b/menu/menu.css| index a3a1ccd..5d90c8f 100644 |
| --- a/menu/menu.css |
| +++ b/menu/menu.css |
| @@ -150,12 +150,14 @@ |
| /* Touch (the phone web audit, 2026-11-28, findings 9 and 10). A row is a |
| 44px target on a coarse pointer, as Apple's and Google's guidance ask, |
| - in every app's menus. And where nothing hovers and the pointer is a |
| + in every app's menus, and so is a menubar title (the wide stacked |
| + header keeps its 24px look and takes 44px of hit area, chrome.css). And where nothing hovers and the pointer is a |
| finger, a shortcut hint is noise: nobody can press it, and it takes the |
| room a long label needs. A hardware keyboard on a tablet still works; |
| the shortcuts sheet in Help still lists them. */ |
| @media (pointer: coarse) { |
| [estilo-menu-item] { min-block-size: 2.75rem; } |
| + [estilo-menubar-title] { min-block-size: 2.75rem; } |
| } |
| @media (hover: none) and (pointer: coarse) { |
| [estilo-menu-key] { display: none; } |