Repository navigation
spec(AST-094): the default look grows nothing for touch; 44 px hit areas never overlap a neighbor (FR42) #8633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
d4bbaf0
dd5f239
cadff8d
6c32385
ef63c83
f8036e6
26f6b61
81ce5a2
0a9fe24
5872deb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -464,6 +464,15 @@ FR33 apply to menus only. A mouse keeps today's behavior. | |
| This replaces `component:Selector` DEC-1's width-and-pointer query with the | ||
| FR13 rule for `adaptive`. | ||
|
|
||
| - **FR42 — The default look grows nothing for touch.** The default Astryx | ||
| look makes no size increase for phones or touch; a size may shrink to fit a | ||
| compact screen, such as an alert's phone width (`component:AlertDialog`). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| Under a coarse pointer, touch targets meet 44 px through an invisible hit | ||
| area. A hit-area expansion never overlaps a neighboring interactive | ||
| element's own target: where neighbors are closer than 44 px, the expansion | ||
| is clamped to half the gap, or skipped, so each element stays reachable. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thumbnail's remove button sits on Open's full-size target, and |
||
| Mobile size increases belong to theme adaptations (DEC-20). | ||
|
|
||
| ### Platform support | ||
|
|
||
| - Supported engines: Astryx's supported browsers (`spec:AST-013`) with touch | ||
|
|
@@ -551,6 +560,7 @@ FR33 apply to menus only. A mouse keeps today's behavior. | |
| | FR34, FR35 | Browser tests and storyboards under a finger | a sub-menu drilling in and its Back row returning; a tap and a drag during a popover's and a menu's growth; a pinch during growth; a mouse | a drill-in that leaves the parent's rows in place, a change between levels that does not play on its roles, a tap during growth that closes, scrolls or moves focus, a pinch blocked other than by the author's `touch-action`, or a changed mouse path fails | | ||
| | FR36–FR40 | Release tests on synthetic touch streams with explicit timestamps, per use | below and past each commit point; a flick that projects past it; a slow drag past it; a release moving back; Reduce Motion; keyboard and mouse paths | a decision that changes mid-settle, a release moving back that commits, a settle that does not start at the release velocity, or an action with no keyboard or mouse path fails | | ||
| | FR41 | Browser tests with real touch input (`spec:AST-013` FR10) | a tap; a long press on a ContextMenu trigger, a DropdownMenu trigger the caller renders, a row with a context menu, and a slider thumb; a long press on a checkbox row's label and on plain text; a cancelled press; mouse and keyboard selection | a tap that selects, a hold with an action that starts a selection or callout, a label or plain text whose long press does not select natively, a suppression that outlives the press, or a change to native selection elsewhere or to mouse, keyboard, or assistive-technology selection fails | | ||
| | FR42 | Default-theme geometry tests under a coarse and a fine pointer, and hit-testing between adjacent targets | every component at phone width with a finger and with a mouse; a dense toolbar; a chip and its remove button; a Switch beside a label link | a default-theme size that grows under touch or at phone width, a touch target under 44 px where neighbors allow it, or a hit area that overlaps a neighbor's target, fails | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This row fails "a default-theme size that grows under touch or at phone width", which includes the 16 px phone reading text and the iOS text-entry floor that current records require; it needs the same scoping as FR42. |
||
| | all | iOS simulator: the UIKit reference capture and the same gesture in Safari; real iOS Safari and Android Chrome devices | per component | an unmatched curve or timing is a parity defect | | ||
|
|
||
| ## Decision log | ||
|
|
@@ -702,6 +712,19 @@ iOS 26.2 simulator measures it. | |
|
|
||
| Rejected: the 150 ms delay on every menu row. | ||
|
|
||
| ### DEC-20 — The default look grows nothing for touch | ||
|
|
||
| **Reference:** `spec:AST-094/DEC-20` | ||
| **Decider:** `cixzhang`, `2026-10-26` | ||
|
|
||
| Sizes do not grow on phones or under touch in the default look, so a product | ||
| looks the same everywhere unless its theme chooses otherwise; shrinking to fit | ||
| a compact screen is fine. Touch reach comes from invisible hit areas, clamped | ||
| so two close neighbors both stay reachable. Themes own mobile size increases | ||
| through their adaptations. | ||
|
|
||
| Rejected: touch-only row heights and control sizes in the default look. | ||
|
|
||
| ## Open questions | ||
|
|
||
| - **OQ1 — Scroll view bounce-back curve.** What curve brings a scroll view | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As written, "no size increase for phones or touch" also forbids the 16 px mobile reading base (
design:mobile-typographyDR1/DR3: Core's 14 px body text becomes 16 px on a phone under touch) and the iOS 16 px text-entry floor (family:input-fieldsFR9), both kept byspec:AST-102FR1/FR3. Suggest scoping this to boxes, for example "makes no row, control or target size increase", and naming those two rules as unaffected, or amending them in this pull request.