Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/specs/AST-094-touch-presentations/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown
Contributor

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-typography DR1/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-fields FR9), both kept by spec:AST-102 FR1/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.

compact screen, such as an alert's phone width (`component:AlertDialog`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

component:AlertDialog is a draft and states no phone width (its width is delegated to Dialog). Cite the record that sets the alert's phone width, or drop the citation.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thumbnail's remove button sits on Open's full-size target, and component:Thumbnail AR4 extends its hit area 2 px on every side on coarse pointers to reach 24 by 24. This clause forbids that expansion and, with no gap to clamp to, leaves the 20 by 20 button AR4 rules out. Could FR42 say how a control placed on another control's target is treated, or amend AR4 here?

Mobile size increases belong to theme adaptations (DEC-20).

### Platform support

- Supported engines: Astryx's supported browsers (`spec:AST-013`) with touch
Expand Down Expand Up @@ -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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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
Expand Down Expand Up @@ -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
Expand Down
Loading