Skip to content

Commit 037a530

Browse files
committed
docs(ContextMenu): FR11 keeps the measured basis for the hold's moments, and the tests that verify them
FR11's basis names both sources again: UIKit's measured 400 ms commit and 735 ms display (`motion/uikit/contextMenu.ts`, `spec:AST-094` FR4, FR45), and FR45 for the growth. Its verification row lists the commit and display tests beside the growth's.
1 parent cbbccea commit 037a530

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/specs/components/ContextMenu/ContextMenu.spec.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Consumer props, content modes, and presentation policy remain documented in
109109
| FR8 | In the pointer menu ArrowDown on the last enabled row wraps to the first and ArrowUp on the first to the last; PageDown and PageUp page as in `component:DropdownMenu` FR12; a held key's auto-repeat does not activate; typeahead matches the row's label element alone. Arrow keys and typeahead skip disabled rows, shipped behavior that is not a requirement until `component:DropdownMenu` OQ1 is ruled. | Current source and tests |
110110
| FR9 | While the Pointer menu surface is open, it participates in `family:overlay-dismissal` through the shared stack and provides descendant depth. One Escape press affects only the top-most present nested surface; ContextMenu closes only when it is that surface. | `family:overlay-dismissal` FR1–FR6; `ContextMenu.test.tsx` nested-layer case |
111111
| FR10 | ContextMenu MUST be built on the public headless context menu (`spec:AST-107` FR8), with its invocation, open state, and cleanup the factory's and no behavior of its own beside the factory's. Implementation gap: no headless context menu ships; ContextMenu owns its invocation, open state, outside-press listener, and cleanup itself. | `spec:AST-107` FR8 |
112-
| FR11 | Under a finger, the Trigger area grows during a hold toward 1.0735 times its size over the theme's `--duration-medium` with `--ease-move`, and it returns after a lift before the commit over `--duration-fast` with `--ease-move`. The theme's tempo reaches both through its duration tokens, and neither follows UIKit's ramp or spring. The hold commits at 400 ms and the menu displays at 735 ms, as UIKit's do. They are measured input, not motion, and stay internal (`spec:AST-094` FR4, FR45). | `spec:AST-094` FR45: a hold is not a gesture, so its motion plays the theme's motion tokens on every pointer. It departs from UIKit's measured press growth on iOS 26.2: a linear ramp, 0.16 and then 0.10 per second, chased by a spring (response 0.4 s, damping ratio 0.6) and shown 38 ms late |
112+
| FR11 | Under a finger, the Trigger area grows during a hold toward 1.0735 times its size over the theme's `--duration-medium` with `--ease-move`, and it returns after a lift before the commit over `--duration-fast` with `--ease-move`. The theme's tempo reaches both through its duration tokens, and neither follows UIKit's ramp or spring. The hold commits at 400 ms and the menu displays at 735 ms, as UIKit's do. They are measured input, not motion, and stay internal (`spec:AST-094` FR4, FR45). | Measured on iOS 26.2 (`motion/uikit/contextMenu.ts`): UIKit commits at 400 ms, shows the menu at 735 ms, and grows the view on a linear ramp chased by a spring. `spec:AST-094` FR4, FR45: the two moments are measured input, and a hold is not a gesture, so the growth plays the theme's tokens |
113113

114114
### Allowed variation
115115

@@ -256,7 +256,7 @@ anchor is positioning infrastructure rather than consumer anatomy.
256256
| FR8 | `ContextMenu.test.tsx` "wraps arrow navigation at the ends", typeahead cases, and "skips aria-disabled menuitemradio and menuitemcheckbox items during arrow navigation" | Wrap; typeahead; disabled rows | A clamped arrow, a missing typeahead match, or a disabled row landed on fails. Evidence gap: no test asserts Page keys or auto-repeat. | `audit:ContextMenu/behavior` |
257257
| FR9 | `ContextMenu.test.tsx` "lets a nested layer consume Escape before the context menu", "closes on Escape even when opened without auto-focus", and "ignores Escape during IME composition" | Nested layer; Escape; composition | A context menu that closes with its nested child, or on a composition Escape, fails. | `audit:ContextMenu/behavior` |
258258
| FR10, PR1 | `ContextMenu.test.tsx` invocation and handler-composition cases ("composes the consumer context-menu handler with menu opening", "keeps component-owned opening when a consumer prevents default", "passes touch events through to the consumer’s own handlers", and the cases where a consumer `onTouchStart` or `onTouchEnd` runs beside the hold) | Right click, long press, keyboard | A context request that does not open the menu, or a dropped consumer handler, fails. Evidence gap: no test asserts listener cleanup on unmount; nothing tests a headless factory, which does not ship (the FR10 gap). | `audit:ContextMenu/behavior` |
259-
| FR11 | `contextMenuPressFeedback.test.tsx` "grows toward the held scale over the theme's medium duration and move easing" and "returns over the theme's fast duration and move easing"; the touch story's browser curve and busy-main-thread cases in Chromium. WebKit's Linux build runs the trigger's scale on the main thread, as a transform too, so its busy-thread case is skipped and an iOS Safari recording of the build stands for WebKit | A held finger: the growth, the return after an early lift, a theme's own duration and move easing | A growth or return on UIKit's ramp or a spring, or one that ignores the theme's duration or move easing, fails | `audit:ContextMenu/behavior` |
259+
| FR11 | `ContextMenu.test.tsx` "opens for a finger still down at 735 ms (iOS 26.2), not a millisecond before" and "opens at the lift for a finger lifted after the commit (400 ms), as UIKit does"; `contextMenuPress.test.ts`; `contextMenuPressFeedback.test.tsx` "grows toward the held scale over the theme's medium duration and move easing" and "returns over the theme's fast duration and move easing"; the touch story's browser curve and busy-thread cases in Chromium, and an iOS Safari recording for WebKit | A held finger: the commit, the display, the growth, the early-lift return, the theme's duration and move easing | A commit or a display off UIKit's moments fails. A growth or return on UIKit's ramp or a spring, or one that ignores the theme's duration or move easing, fails | `audit:ContextMenu/behavior` |
260260
| Theming anatomy map | `scripts/check-knowledge.mjs` | Canonical anatomy and target | Missing, extra, prefixed, stale, or unclassified mappings fail repository validation. | `audit:ContextMenu/theming` |
261261
| RTL relation | RTL audit curated D2 target (`apps/storybook/rtl-audit/targets.json`) on the `Presentation / BottomSheet submenu` story | BottomSheet opened into a submenu, LTR and RTL | The sheet header's back button not at the inline start of its heading in both directions fails D2. | `audit:ContextMenu/i18n-rtl` |
262262

0 commit comments

Comments
 (0)