Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
3dd581e
feat(core): one progress module for the motion foundation
vjeux Nov 3, 2026
3cfb3b1
refactor(animatedLayout): take the settle spring's progress from prog…
cixzhang Nov 3, 2026
273da1e
feat(core): the rect morph's paths, the rect a grow-out presentation …
vjeux Nov 3, 2026
f1149cd
Merge remote-tracking branch 'origin/main' into motion/morph-path
cixzhang Nov 3, 2026
131ca14
feat(core): one rect morph for touch presentations that grow out of a…
vjeux Nov 3, 2026
b9b630a
feat(TextInput, TextArea, NumberInput): fields stay above the keyboard
vjeux Nov 3, 2026
f19df27
fix(rectMorph): a handed-in animator stays on the element through a c…
cixzhang Nov 3, 2026
e3a43d0
fix(motion): one timed curve keeps a retargeted velocity, for the pag…
cixzhang Nov 4, 2026
c99210a
fix(rectMorph): a timed motion from rest plays its easing as given
cixzhang Nov 4, 2026
3272828
docs(rectMorph): the timing follows the component's motion record
cixzhang Nov 5, 2026
c311399
docs(AST-099): TextInput, TextArea and NumberInput meet FR9
vjeux Nov 7, 2026
df642e0
Merge main into motion/morph-path
vjeux Nov 8, 2026
8c8f726
Merge motion/morph-path into motion/rect-morph
vjeux Nov 8, 2026
3fdca8f
fix(rectMorph): AST-094 links the morph; the proof imports a safe test
vjeux Nov 8, 2026
d4903e2
test(SnapPaging): the pager's bundle lists the progress module
vjeux Nov 8, 2026
1b794af
test(motion): the popover's proofs read Popover's live geometry
vjeux Nov 8, 2026
5dd6a6a
Merge motion/morph-path into motion/rect-morph
vjeux Nov 8, 2026
3bfa524
refactor(motion): one eased progress, with a retargeted velocity
vjeux Nov 8, 2026
ad7f8fb
test(motion): the popover's turn-around reads Popover's live curves
vjeux Nov 8, 2026
99d352d
Merge motion/morph-path into motion/rect-morph
vjeux Nov 8, 2026
33a3ee8
docs(changeset): the rect morph's note names the eased-progress move
vjeux Nov 8, 2026
2bf8f8a
Merge main into motion/rect-morph
vjeux Nov 9, 2026
822013a
test(motion): the popover's turn-around compares opacity as drawn
vjeux Nov 9, 2026
2651e17
Merge motion/morph-path into motion/rect-morph
vjeux Nov 9, 2026
d9d89ea
Merge main
vjeux Nov 10, 2026
6354fa3
fix(motion): a popover's morph never reads an opacity below 0
vjeux Nov 10, 2026
dcfa346
Merge motion/morph-path into motion/rect-morph
vjeux Nov 10, 2026
75391ad
feat(DropdownMenu): a finger or a pen opens the menu as it presses
vjeux Nov 10, 2026
6b6310c
test(motion): the morph proofs drop the menu's old straight line
vjeux Nov 10, 2026
e8face7
Merge main
vjeux Nov 10, 2026
d08f0d3
Merge main
vjeux Nov 10, 2026
eb2c859
docs(DropdownMenu): open-on-press notes name the anchored menu
vjeux Nov 10, 2026
3603adb
Merge main
vjeux Nov 10, 2026
de86bc9
sandbox: a page to try a menu's press under a finger
vjeux Nov 10, 2026
7419b9d
Merge main
vjeux Nov 10, 2026
927c081
Merge the open-on-press change into the rect morph stack
vjeux Nov 10, 2026
61b57b9
feat(DropdownMenu): a finger's open grows the menu out of its trigger
vjeux Nov 10, 2026
badea5d
fix(DropdownMenu): under Reduce Motion a finger's open only fades in
vjeux Nov 10, 2026
1f576a5
test(DropdownMenu): touch specs wait out a finger's grow
vjeux Nov 10, 2026
75b3111
refactor(core): one Reduce Motion predicate for the animator and menu
vjeux Nov 10, 2026
b3d3565
fix(DropdownMenu): every copy of Core shares the grow's one load
vjeux Nov 10, 2026
86871f9
fix(DropdownMenu): taps stay off the page until the menu shows
vjeux Nov 11, 2026
36122dd
docs(AST-094): FR31 grows once the grow's code is loaded
vjeux Nov 11, 2026
be132da
Merge main
vjeux Nov 11, 2026
b08ab80
docs(AST-094): FR31's faded open closes with no shrink
vjeux Nov 11, 2026
87ccfba
fix(keyboard): the scroll back's records are one per page across copies
vjeux Nov 11, 2026
3f35abd
fix(DropdownMenu): the grow's code loads through the shared loader
vjeux Nov 11, 2026
b5e93ce
Merge main
vjeux Nov 11, 2026
e6190c0
fix(keyboard): a field focused as it mounts starts its session at attach
vjeux Nov 11, 2026
a71e804
Merge main
vjeux Nov 11, 2026
bf9675e
Merge the open-on-press change into the rect morph stack
vjeux Nov 11, 2026
2e37b3a
Merge main and the open-on-press change
vjeux Nov 11, 2026
78442d4
Merge commit 'ebb9ddecc0219bc6eaf3caf40b6e4e45f81dc0e5' into motion/r…
cixzhang Nov 11, 2026
09bb9c2
fix(motion): existing callers keep easedProgress's values; the pager …
cixzhang Nov 11, 2026
b24c23c
test(paging): a retarget at the first instant goes on at the starting…
cixzhang Nov 11, 2026
9d40852
test(paging): a 0 ms move is on its target at once, at rest
cixzhang Nov 11, 2026
6c17632
test(motion): compare the callers' values with copies of the earlier …
cixzhang Nov 11, 2026
542e150
Merge the open-on-press change into the rect morph stack
vjeux Nov 11, 2026
bdb2003
Merge the rect morph's new head
vjeux Nov 11, 2026
3b7e253
refactor(core): one useMenuPress for every menu
vjeux Nov 11, 2026
7093e59
refactor(keyboard): read Reduce Motion through reducedMotionFade
vjeux Nov 11, 2026
55490ae
refactor(keyboard): the scroll back lives in keyboardTarget.ts
vjeux Nov 11, 2026
08ae3b6
docs(AST-099): name the keyboard module's new cross-module exports
vjeux Nov 11, 2026
92dd62a
Merge the open-on-press change into the rect morph stack
vjeux Nov 11, 2026
a831c2c
Merge the open-on-press change's rework
vjeux Nov 11, 2026
60ed7c7
docs(AST-099): Gap 19, a field in a modal sheet shorter than tall
vjeux Nov 11, 2026
2d41fe6
refactor(DropdownMenu): grow with the page, on Popover's surface motion
vjeux Nov 11, 2026
a88dfbb
docs(Popover): name the surface motion options DropdownMenu passes
vjeux Nov 11, 2026
cab4595
Merge main
vjeux Nov 11, 2026
a0bdb12
Merge main
vjeux Nov 11, 2026
3b51d59
Merge the open-on-press change into the rect morph stack
vjeux Nov 11, 2026
14f3d32
Merge the open-on-press change's main merge
vjeux Nov 11, 2026
c13c351
test(DropdownMenu): read the row under a held finger once the grow rests
vjeux Nov 11, 2026
ac25529
docs(AST-099): name Gap 19 where the fields meet FR9
vjeux Nov 11, 2026
e2bbbe7
refactor(input): one touch reader in the input stream
vjeux Nov 11, 2026
d4a7d3b
docs(AST-099): name the input stream's one touch reader
vjeux Nov 11, 2026
18fcf70
Merge commit '7e7fbae0fa0ba389ad37fafdb26e6495fab19fd4' into motion/r…
cixzhang Nov 11, 2026
801dc38
Merge main into the rect morph stack
vjeux Nov 12, 2026
5a7e8b1
Merge main and the rect morph stack's live head
vjeux Nov 12, 2026
6176b9d
docs(AST-094): name the morph path module
cixzhang Nov 12, 2026
f082fe6
Merge commit '6176b9dccc1986b83713e4c9dcf39688e7c5b3e6' into motion/r…
cixzhang Nov 12, 2026
b957453
docs(AST-094): name the rect morph module
cixzhang Nov 12, 2026
138f80f
refactor(Popover): name the tap hold until the grow's first frame
vjeux Nov 12, 2026
672d67a
Merge main into the rect morph stack
vjeux Nov 12, 2026
55f0340
Merge main and the rect morph stack's live head
vjeux Nov 12, 2026
6f51984
refactor(DropdownMenu): grow on Popover's own surface motion
vjeux Nov 12, 2026
ea3b6ce
Merge main, without the rect morph stack
vjeux Nov 12, 2026
d15f2d7
fix(Popover): grow from the trigger's box without its press scale
vjeux Nov 12, 2026
b074ed2
Merge main for useCommittedRefInto
vjeux Nov 12, 2026
dfbaecc
fix(DropdownMenu): commit presentSurfaceRef through useCommittedRefInto
vjeux Nov 12, 2026
1a4c38a
refactor(DropdownMenu): read the click's press from the press model
vjeux Nov 12, 2026
681ed71
docs(DropdownMenu): record the press report and the entrance without one
vjeux Nov 12, 2026
a2c2f3c
docs(DropdownMenu): word the press records in the present tense
vjeux Nov 12, 2026
6c8aeaa
Merge main for the press model's committed refs
vjeux Nov 12, 2026
0cd83b8
fix(DropdownMenu): mark a finger's open only where the menu opens
vjeux Nov 12, 2026
bfb1a32
Merge main
vjeux Nov 12, 2026
dd68a2a
fix(DropdownMenu): tie a finger's open to its gesture
vjeux Nov 12, 2026
a539222
fix(core): keep the keyboard store apart from copies of another shape
vjeux Nov 12, 2026
b9c1bdb
fix(DropdownMenu): an open from code plays the layer's entrance
vjeux Nov 12, 2026
bfb9d29
Merge main
vjeux Nov 12, 2026
2ed29e9
refactor(core): state the keyboard store's constraint in its comment
vjeux Nov 12, 2026
26af8e6
Merge main for the menu press's touch identifier
vjeux Nov 12, 2026
827967d
fix(DropdownMenu): under Reduce Motion a menu fades out where it stands
vjeux Nov 12, 2026
edced5f
Merge main
vjeux Nov 12, 2026
e15b9fd
Merge main for the menu's show and hide refs at commit
vjeux Nov 12, 2026
a99b97f
Merge main
vjeux Nov 13, 2026
c765ff2
fix(DropdownMenu): say Reduce Motion fades only on a coarse pointer
vjeux Nov 13, 2026
6a89434
Merge main for the layer's show from another trigger
vjeux Nov 13, 2026
babd93d
Merge main
vjeux Nov 14, 2026
929b3a5
Merge main
vjeux Nov 14, 2026
9fa057e
Merge main for the alert dialog's touch motion and the swipe actions
vjeux Nov 14, 2026
efe9125
Merge main for the popover's focus-return target
vjeux Nov 14, 2026
d6a5376
fix(Layer): an exit copy keeps the padding and colors of what it copies
vjeux Nov 14, 2026
3529093
Merge the exit copy fix, with main
vjeux Nov 14, 2026
c0dc00f
test(DropdownMenu): a finger's close copy draws the menu's rows in place
vjeux Nov 14, 2026
f25d71c
test(Layer): the browser's popover style reaches the exit copy
vjeux Nov 14, 2026
f9885ce
docs(DropdownMenu): the press model's record says why no engine fits
vjeux Nov 14, 2026
1acd00c
Merge the exit copy fix's test update
vjeux Nov 14, 2026
2937d9a
Merge main into the exit copy fix
vjeux Nov 15, 2026
37cf451
Merge main for the kept-inside hold's release
vjeux Nov 15, 2026
d8f3cff
fix(menu press): cancel a pick's touchend on the node the touch began on
vjeux Nov 15, 2026
7373633
Merge main into the exit copy fix
vjeux Nov 15, 2026
f894ca8
Merge main
vjeux Nov 15, 2026
946e2b5
Merge main
vjeux Nov 15, 2026
6f3779e
Merge main
vjeux Nov 15, 2026
804b708
Merge main
vjeux Nov 16, 2026
ec5dba0
Merge main
vjeux Nov 16, 2026
2db3ef8
fix(DropdownMenu): a finger's open that waits still grows
vjeux Nov 15, 2026
9c2a399
fix(menu press): swallow a Home Screen app's late click after a pick
vjeux Nov 16, 2026
4a5172d
test(menu press): a later tap still acts; cite the records exercised
vjeux Nov 16, 2026
5c3698c
Merge main
vjeux Nov 17, 2026
315db84
Merge main
vjeux Nov 17, 2026
67e2492
Merge main
vjeux Nov 17, 2026
58de566
fix(DropdownMenu): a finger's touch outside only closes the menu
vjeux Nov 17, 2026
c820a48
docs(keyboard): record Back in Firefox for Android as a gap
vjeux Nov 17, 2026
584d8a3
docs(keyboard): say that Gap 21 shows more often on main
vjeux Nov 17, 2026
01f57af
Merge #9777
vjeux Nov 17, 2026
80a6e92
Merge #8080
vjeux Nov 17, 2026
ad53d7f
Merge #11859
vjeux Nov 17, 2026
5a216db
docs(keyboard): narrow the changeset for Back in Firefox for Android
vjeux Nov 17, 2026
9318341
test(DropdownMenu): pin a waiting finger open that another press leaves
vjeux Nov 17, 2026
c3e3df7
Merge main
vjeux Nov 17, 2026
76439a4
Merge #9777
vjeux Nov 17, 2026
f5ce8f7
Merge #8080
vjeux Nov 17, 2026
d94f17e
Merge #11859
vjeux Nov 17, 2026
8982668
Merge #12179
vjeux Nov 17, 2026
31f94f2
test(DropdownMenu): count no outside hold in the touch-grow stub
vjeux Nov 17, 2026
f1b8bf3
Merge main
vjeux Nov 17, 2026
0bad538
fix(DropdownMenu): end an outside tap whose target left the page
vjeux Nov 17, 2026
9596e56
refactor(Layer): keep the outside pan test in outsidePress
vjeux Nov 17, 2026
ea898e4
docs(DropdownMenu): a pan outside the menu now closes it
vjeux Nov 17, 2026
42d1bf8
Merge #9777
vjeux Nov 17, 2026
975f954
Merge #8080
vjeux Nov 17, 2026
8186977
Merge #11859
vjeux Nov 17, 2026
ede7f12
Merge #12179
vjeux Nov 17, 2026
ddf9cdd
fix(DropdownMenu): a second finger after a pan is a new touch
vjeux Nov 17, 2026
6ff65df
Merge main
vjeux Nov 18, 2026
ee30a11
Merge #8080
vjeux Nov 18, 2026
7695cc7
Merge #11859
vjeux Nov 18, 2026
962e51f
Merge #12179
vjeux Nov 18, 2026
02b9ae6
Merge main
vjeux Nov 19, 2026
5752d21
Merge #8080
vjeux Nov 19, 2026
86bd90b
Merge #11859
vjeux Nov 19, 2026
7057b76
Merge #12179
vjeux Nov 19, 2026
53e66d6
Merge main
vjeux Nov 19, 2026
c112acf
Merge #8080
vjeux Nov 19, 2026
cc8b488
Merge #11859
vjeux Nov 19, 2026
0f74470
Merge #12179
vjeux Nov 19, 2026
093df78
Merge main
vjeux Nov 20, 2026
b892503
Merge #8080
vjeux Nov 20, 2026
f396896
Merge #11859
vjeux Nov 20, 2026
56e3a2d
Merge #12179
vjeux Nov 20, 2026
5fd736a
Merge #11859
vjeux Nov 20, 2026
5c385e8
Merge main
vjeux Nov 20, 2026
330eb1c
Merge #8080
vjeux Nov 20, 2026
dfa63db
Merge #12179
vjeux Nov 20, 2026
49fc0a1
fix(DropdownMenu): a pick's late click stays guarded after touchend
vjeux Nov 20, 2026
7f1fce5
Merge #12179
vjeux Nov 20, 2026
4651f21
fix(DropdownMenu): one top-layer shield for a finger's open
vjeux Nov 20, 2026
d93fa3d
Merge #8080
vjeux Nov 20, 2026
6aeaf3c
Merge #11859
vjeux Nov 20, 2026
f018190
Merge #12179
vjeux Nov 20, 2026
00b99cf
refactor(clickGuard): keep the trust read in clickGuard.ts
vjeux Nov 20, 2026
1dd80db
Merge #12179
vjeux Nov 20, 2026
414ea36
fix(clickGuard): register the trust read like the guard's state
vjeux Nov 20, 2026
fedd051
Merge #12179
vjeux Nov 20, 2026
67dc9e9
Merge main
vjeux Nov 23, 2026
a9e8913
Merge #12179
vjeux Nov 23, 2026
647071c
Merge main
vjeux Nov 23, 2026
3a27f09
chore: re-trigger the preview deployment (empty commit; tree unchanged)
vjeux Nov 23, 2026
46a28a5
chore: re-trigger the preview deployment (empty commit; tree unchanged)
vjeux Nov 23, 2026
b15341f
Merge #12179
vjeux Nov 23, 2026
48cc3c6
Merge main
vjeux Nov 23, 2026
0bcb9df
Merge main
vjeux Nov 24, 2026
000d16b
Merge main
vjeux Nov 24, 2026
28c87b9
Merge main
vjeux Nov 24, 2026
15d7c2d
Merge main
vjeux Nov 24, 2026
f8f2a83
Merge main into the menu outside tap fix
cixzhang Dec 3, 2026
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
7 changes: 7 additions & 0 deletions .changeset/menu-outside-tap-swallow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] Under a finger or a pen, a touch outside an open DropdownMenu now only closes it, as a native menu's does. The control under the finger no longer gets the touch's press, its compatibility mouse events or its click. A tap closes the menu at its lift, and a pan as it begins; the page still scrolls and zooms. A mouse and `presentation="popover"` keep their behavior.

@vjeux
118 changes: 117 additions & 1 deletion apps/storybook/stories/DropdownMenu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {Meta, StoryObj} from '@storybook/react';
import * as stylex from '@stylexjs/stylex';
import {Badge} from '@astryxdesign/core/Badge';
import {IconButton} from '@astryxdesign/core/IconButton';
import {useState} from 'react';
import {useMemo, useState} from 'react';
import {
DropdownMenu,
DropdownMenuItem,
Expand All @@ -21,6 +21,10 @@ import {CheckboxInput} from '@astryxdesign/core/CheckboxInput';
import {Switch} from '@astryxdesign/core/Switch';
import {RadioList, RadioListItem} from '@astryxdesign/core/RadioList';
import {TextInput} from '@astryxdesign/core/TextInput';
import {List, ListItem} from '@astryxdesign/core/List';
import {Slider} from '@astryxdesign/core/Slider';
import {createSwipe} from '@astryxdesign/core/Swipe';
import {Switch} from '@astryxdesign/core/Switch';

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.

Blocking (regression). Line 21 already imports Switch (it came from main), so this second import makes Storybook stop while indexing the file ("Identifier 'Switch' has already been declared. (27:8)"), and the Storybook typecheck reports TS2300: Duplicate identifier 'Switch'. Delete this line.

import {spacingVars} from '@astryxdesign/core/theme/tokens.stylex';
import {
PencilIcon,
Expand Down Expand Up @@ -87,6 +91,30 @@ type Story = StoryObj<typeof DropdownMenu>;
// Story args the tooltip regression spec drives through the URL.
type StoryArgs = Omit<DropdownMenuProps, 'items' | 'children'>;

const outsideTouchStyles = stylex.create({
page: {
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
gap: spacingVars['--spacing-4'],
},
// Below where the open menu reaches, so a touch can land beside it.
controls: {
display: 'flex',
flexDirection: 'column',
gap: spacingVars['--spacing-4'],
marginTop: 240,
width: 320,
},
scroller: {
height: 160,
overflowY: 'auto',
},
scrollerRow: {
paddingBlock: spacingVars['--spacing-2'],
},
});

const readinessStyles = stylex.create({
viewportStoryCanvas: {
boxSizing: 'border-box',
Expand Down Expand Up @@ -1838,3 +1866,91 @@ export const InClosedInFlowDialog: Story = {
);
},
};

/**
* A menu above controls that act on a touch: a Switch, a Slider, a list that
* scrolls and a row with a swipe action. Each control shows what reached it.
* A touch outside the open menu reaches none of them, and a pan outside it
* still scrolls the list.
*/
export const OutsideTapReachesNothing: Story = {
render: ({presentation: _, ...args}: StoryArgs) => {
const [isOn, setIsOn] = useState(false);
const [switchActs, setSwitchActs] = useState(0);
const [level, setLevel] = useState(50);
const [sliderActs, setSliderActs] = useState(0);
const [scrollOffset, setScrollOffset] = useState(0);
const [swipes, setSwipes] = useState(0);
const swipe = useMemo(
() =>
createSwipe({
trailing: [
{
id: 'archive',
label: 'Archive',
onActivate: () => setSwipes(count => count + 1),
},
],
swipeBehavior: 'commit',
}),
[],
);
return (
<div {...stylex.props(outsideTouchStyles.page)}>
<DropdownMenu button={{label: 'Actions'}} {...args}>
<DropdownMenuItem label="Rename" onClick={() => {}} />
<DropdownMenuItem label="Duplicate" onClick={() => {}} />
<DropdownMenuItem label="Delete" onClick={() => {}} />
</DropdownMenu>
<div {...stylex.props(outsideTouchStyles.controls)}>
<Switch
label="Notifications"
value={isOn}
onChange={checked => {
setIsOn(checked);
setSwitchActs(count => count + 1);
}}
/>
<output data-testid="switch-acts">Switch acts: {switchActs}</output>
<Slider
label="Volume"
value={level}
onChange={(value: number) => {
setLevel(value);
setSliderActs(count => count + 1);
}}
/>
<output data-testid="slider-acts">Slider acts: {sliderActs}</output>
<div
{...stylex.props(outsideTouchStyles.scroller)}
role="region"
aria-label="Scrolling list"
tabIndex={0}
onScroll={event =>
setScrollOffset(Math.round(event.currentTarget.scrollTop))
}>
{Array.from({length: 30}, (_, index) => (
<div
key={index}
{...stylex.props(outsideTouchStyles.scrollerRow)}>
Row {index + 1}
</div>
))}
</div>
<output data-testid="scroll-offset">
Scroll offset: {scrollOffset}px
</output>
<List>
<ListItem
itemKey="swipe-row"
label="Swipe this row"
swipe={swipe}
onClick={() => {}}
/>
</List>
<output data-testid="swipes">Swipes: {swipes}</output>
</div>
</div>
);
},
};
10 changes: 8 additions & 2 deletions docs/architecture/layer-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,13 @@ layers use Layer rendering without joining Escape/platform dismissal.
are for their dismissal. A blur hold leaves a nested layer, its path, and a
child live region live, such as a toast viewport that a leaving alert
hosts. The component
still decides where focus returns. A component that holds input uses this hold rather
still decides where focus returns. An anchored menu that is open under the
touch presentation takes the hold's `'outside'` scope (`spec:AST-094`
FR32). A finger's or a pen's press that starts outside the menu, its
trigger and any live shield is held to its end. None of its events reaches
the page. Its moves are never canceled, so a pan still scrolls the page and
a pinch still zooms it. The menu closes as the press begins to pan or at
its lift, and the newest menu's scope decides. A component that holds input uses this hold rather
than building its own. It is separate from INV14's presentation hold, which
keeps a layer's chosen presentation.
- **INV17 — A click inside a layer stops at the layer root.** A pointer,
Expand Down Expand Up @@ -1001,7 +1007,7 @@ this current architecture record.
| INV9 | Representative Dialog, ContextMenu, Tooltip/HoverCard, and BottomSheet source/tests; `useBackdropPress.test.tsx`; `outsidePress.test.ts` | A current local channel silently changes ownership or policy |
| INV10 | `LayerProvider.tsx`, `toastHost.tsx`, `LayerProvider.test.tsx`, `toastHost.test.tsx`, `toastHost.lateRegistration.test.tsx`, `useToast.tsx`, `ToastViewport.test.tsx`, `ToastViewport.modalHost.test.tsx`, and `scripts/layer-toast-bundle.test.mjs` | Provider begins relocating ordinary layers, Toast fallback loses its current lifecycle, a default provider renders differently from no provider, a Layer import loads a Toast module, or a toast added before Toast loads is lost |
| INV14, INV15 | Source boundary check over Core for top-layer hosts, exit copies, backdrop elements, lift, and rectangle-morph code outside the runtime and the lift module | A component building its own copy of a mechanism INV14 lists (top-layer mounting, close-request delivery, hold, exit copy, or backdrop element), or re-implementing the lift or the grow |
| INV16 | `inputHold.test.tsx` (including its `'kept-inside'` dismissal cases), `holdEntranceInput.test.ts`, `inputHold.interaction.browser.spec.ts`, and `BottomSheetCloseFocus.test.tsx`; the Dialog and Drawer touch-entrance proofs in Chromium and WebKit | A component that holds input on its own, a held key or assistive-technology action during a presentation, a pinch that no longer zooms, or a dismissal that lets its content be activated, inert content that still holds focus, or content made inert or blurred while focus stays inside a layer whose record keeps it live fails |
| INV16 | `inputHold.test.tsx` (including its `'kept-inside'` dismissal cases), `holdEntranceInput.test.ts`, `inputHold.interaction.browser.spec.ts`, and `BottomSheetCloseFocus.test.tsx`; the Dialog and Drawer touch-entrance proofs in Chromium and WebKit; its `'outside'` cases and `DropdownMenuOutsideTap.test.tsx` | A component that holds input on its own, a held key or assistive-technology action during a presentation, a pinch that no longer zooms, or a dismissal that lets its content be activated, inert content that still holds focus, or content made inert or blurred while focus stays inside a layer whose record keeps it live, or an outside press that reaches the page or cancels a move, fails |
| INV17 | One runtime suite over every kind of layer root: a `useLayer` layer, inline and portaled, and the Dialog, Drawer, Lightbox, MobileNav, BottomSheetPanel, and ToastViewport content roots, each inside a plain `onClick` wrapper and a Core clickable container; nested layers | A click inside a layer root that reaches an ancestor bubble-phase handler, a caller's wrapper included; an outer layer's handler that receives an inner layer's press; or a document listener or light dismiss that no longer receives it |
| INV18 | `useLayer.test.tsx` (a closed trigger has no anchor-name, and the trigger of a shown or fading layer does) and `TooltipClosedTriggerAnchor.interaction.browser.spec.ts` in Chromium and WebKit | A closed trigger with an anchor-name, a shown or fading layer placed away from its anchor, or a surface around a closed trigger that stops while the main thread is busy |
| INV18 | `useLayer.test.tsx`: a closed state that declares a discrete `display` transition or a keyframe animation keeps the trigger's anchor name until those animations end, read from the closed state's style; a layer whose closed state declares neither is not read for animations at the close | A layer with such a closed-state exit placed away from its anchor while it fades, or an animation read on the close of a layer whose closed state declares no exit |
Expand Down
6 changes: 4 additions & 2 deletions docs/specs/AST-094-touch-presentations/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,10 @@ under a finger, and a mouse follows `module:DropdownMenu/useMenuPress` FR3 and
programmatic open and a press the menu's press model ignores, such as a
second finger.
- **FR32 — A pan outside dismisses.** Under a finger, an open anchored menu MUST close as a touch outside it
begins to pan, and at the lift of a tap or hold outside it. A Popover's
dismissal is unchanged. A pinch stays available over it: its surface
begins to pan, and at the lift of a tap or hold outside it. A tap outside
closes the menu and reaches nothing beneath it, under a finger or pen. The
dismissing touch, like UIKit's, reaches nothing beneath; native scrolling
continues. A Popover's dismissal is unchanged. A pinch stays available over it: its surface
never takes `touch-action: none`, so the page keeps zooming unless the
author's own `touch-action` leaves out `pinch-zoom` (FR10, FR18;
WCAG 2.2 SC 1.4.4). Listening for that outside touch costs nothing once it ends (FR24). A menu
Expand Down
Loading