Skip to content

spec(ContextMenu): a touch-opened menu lifts its trigger in place over the page tint, with no shadow - #9538

Draft
cixzhang wants to merge 6 commits into
mainfrom
spec/contextmenu-no-scrim-no-shift
Draft

cixzhang wants to merge 6 commits into
mainfrom
spec/contextmenu-no-scrim-no-shift

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer impact

A person who holds a finger on a ContextMenu trigger sees the trigger lift and zoom where it is, over a tinted page, with no shadow under it, and the trigger never moves to make room for the menu. The menu opens beside the lifted trigger, above or below where it fits, and never covers it, growing out of its edge nearest the finger. A tap on the tint closes the menu.

Exact decision needed

Whether a touch-opened ContextMenu tints the page, draws a shadow under the lifted trigger, and moves its trigger to make room. The owner's direction: keep the tint and a tap on it closing the menu, keep the lift, zoom and placement, drop the shadow, and never move the trigger.

Decision

The owner, 2026-11-09 (the latest direction, which supersedes an earlier 2026-11-02 approval of this record that dropped the page dim): keep the lift and zoom, the tint, the placement, and tap-the-tint-to-close; drop the lift shadow; see in-place previews before approving.

The owner, 2026-11-02: do not move the trigger to make room for the menu. Earlier, 2026-11-01: the lift is touch-only (desktop keeps its released look), and no blur.

Changed records

component:ContextMenu only:

  • DD1: unchanged from main: while a touch-opened menu lifts its trigger, the page behind it is tinted with the theme's overlay color and is not blurred.
  • FR5: the trigger lifts where it is and never moves to make room for the menu; the menu opens beside the lifted trigger's in-place box (grown by the lift) and keeps that trigger clear as spec:AST-059 FR4 orders for a layer that keeps its anchor clear: above or below where it fits, then beside it, then the roomier side with the menu capped and scrolling. It never settles over the trigger, even when neither side has room. A tap outside, under the lift a tap on the tint, closes the menu. The menu grows out of the point on its edge nearest the finger.
  • DEC-2: three elements while open, down from four: the lift layer (paints the tint as its ::backdrop; a tap on it closes the menu and reaches nothing beneath, spec:AST-094 FR33), the anchor box (at the trigger's in-place box grown by the lift, not on the lifted trigger itself, since anchor positioning follows transforms), and the placeholder. The shadow box is removed, and a shadow is a rejected alternative, as is moving the trigger.
  • Verification rows (FR5/DD1 touch scope, DEC-2) and Current-state impact are updated: an untinted page, a shadow, a tint tap that leaves the menu open, or a moved or covered trigger fails. The lift is still unbuilt and is listed as a gap.

spec:AST-094 is unchanged: FR33 places the menu beside the lifted trigger, which this record keeps. No motion role is removed.

Evidence and implementation relationship

This sets what #8201 builds: the page tint and tap-the-tint-to-close as on main, no shadow under the lifted trigger, the trigger lifted in place and never moved, and the menu placed beside it and keeping it clear. In-place previews of #8201's behavior to this record (iPhone and Android emulator) are requested from the device farm for the owner before approval.

Writing rubric results

  • R1 narration: none. The record states what the system does in the present tense.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: two Rejected: lines inside DEC-2 (moving the trigger; a shadow), each one sentence.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none. Open questions: none.

Scope

  • This PR contains specification records only.

@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 18, 2026 10:38pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 2, 2026
@astracat-bot

astracat-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 18, 2026, 10:47 PM UTC

@cixzhang

cixzhang commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 3a77795

@astracat-bot astracat-bot Bot left a comment

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.

Requesting changes: the record now opens the touch menu at the finger's point, but spec:AST-094 FR33, which this pull request leaves unchanged, still says the menu shows beside the lifted trigger, and FR5 keeps "with the menu beside it" next to the new sentence. ORD1 keeps the finger's point inside the trigger, so a menu placed there covers the lifted trigger instead of sitting beside it. Please make the records agree in this pull request. Either amend FR33 and FR5 to the finger's-point placement and say whether the menu paints above the lifted trigger, or anchor the menu beside the trigger's in-place lifted rect; the no-dim and no-move decisions themselves need no change.

[Automated review]

@cixzhang

cixzhang commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec bae3635

@astracat-bot astracat-bot Bot left a comment

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.

Requesting changes: dropping the page dim and keeping the trigger in place is owner-approved, but two things need fixing first. FR5 says the touch menu never covers the lifted trigger, yet it names the released placement, and spec:AST-059 FR4 shifts that placement over the trigger when neither side has room for the menu. Please state the no-room outcome, and the clearance from the grown trigger, in FR5 and its verification row. The description still describes the earlier finger's-point placement and says FR33 already rules out a tint and a shift, so please update it to match the record.

[Automated review]

cixzhang and others added 2 commits November 2, 2026 08:57
@cixzhang

cixzhang commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 3b24dd4

@astracat-bot astracat-bot Bot left a comment

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.

Requesting changes: dropping the page dim and lifting the trigger in place are owner-approved, and FR5 now keeps the lifted trigger clear in every placement. Two wording fixes remain. DEC-2 places the menu against the trigger's unscaled in-place box while FR5 measures from the box grown by the lift, so please add "grown by the lift" to DEC-2's anchor-box bullet. The description's DEC-2 bullet still says the anchor box sits at the finger's point; please update it to the trigger's in-place box.

[Automated review]

# Conflicts:
#	docs/specs/components/ContextMenu/ContextMenu.spec.md
@cixzhang
cixzhang marked this pull request as draft November 18, 2026 22:17
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026
… the lift shadow

The owner's later direction keeps the lift and zoom in place, the page
tint, placement, and a tap on the tint closing the menu, and drops the
shadow under the lifted trigger. FR5, DD1, the touch-scope and element-count
verification rows, the current-state line, and DEC-2 now say so: the lift
layer paints the tint as its backdrop and a tap on it closes the menu, the
lift adds three elements (layer, anchor, placeholder), and a shadow is a
rejected alternative.
@cixzhang cixzhang changed the title spec(ContextMenu): a touch-opened menu lifts its trigger in place, with no page dim spec(ContextMenu): a touch-opened menu lifts its trigger in place over the page tint, with no shadow Nov 18, 2026

@astracat-bot astracat-bot Bot left a comment

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.

Approval here waits on an owner decision, not on changes: FR5 (the trigger lifts in place and never moves, with the menu placed beside its grown in-place box and never over it) and DEC-2 (three elements, with the shadow box removed and a shadow and moving the trigger rejected) are new requirements in the ContextMenu record, and the earlier spec approvals were for older commits. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner.

There are no blocking findings, and the earlier anchor-box and description comments are addressed at this head. One optional cleanup: the FR5/DD1 and DEC-2 verification rows still say the lift is "unbuilt", which the writing rubric's R7 asks to restate as a gap, and the rubric results in the description stop at R6.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: a held finger lifts the trigger in place over a tinted page, with no shadow, and the trigger never moves: verified (FR5, DD1, DEC-2).
  • Claim: the menu opens beside the lifted trigger, above or below where it fits, then beside it, then on the roomier side capped and scrolling, and never covers it: verified (FR5 and its verification row).
  • Claim: a tap on the tint closes the menu and reaches nothing beneath: verified (FR5, DEC-2).
  • Claim: the menu grows out of the point on its edge nearest the finger: verified (FR5).
  • Claim: the page-tint design decision is unchanged from main: verified.
  • Claim: DEC-2 has three elements, the anchor box sits at the in-place box grown by the lift, and a shadow and moving the trigger are rejected: verified.
  • Claim: the verification rows and the current-state section are updated, and the lift is still listed as a gap: verified.
  • Claim: the touch-presentations record is unchanged and no motion role is removed: verified.
  • Claim: the pull request contains specification records only: verified.
  • Claim: writing rubric results R1 to R6: verified as reported; R7 is not reported.
  • File: docs/specs/components/ContextMenu/ContextMenu.spec.md: one non-blocking note (R7 wording in two verification rows).

Automated review (maintainer link)

Comment on lines +256 to +259
| FR5, DD1 touch scope | Browser tests on the touch story, the menu opened by a finger under a coarse pointer and by a mouse and by Shift+F10 under a fine pointer | Touch-opened, mouse-opened and keyboard-opened menus on a block trigger | A mouse- or keyboard-opened menu that lifts its trigger, tints the page or grows, or a touch-opened menu that leaves the page untinted or blurs it, draws a shadow under the lifted trigger, stays open after a tap on the tint, moves its trigger to make room for the menu, covers the lifted trigger, including when neither side has room (a tall menu near a viewport edge), or opens away from the lifted trigger's in-place box where the menu fits, grows a second surface, or animates anything but transform and opacity, fails. Evidence gap: the lift and the grow are unbuilt, so no test asserts either. | `audit:ContextMenu/behavior` |
| FR5 Reduce Motion | Browser tests on the touch story with reduced motion | A touch-opened menu opening and closing under Reduce Motion | A lift, grow or shrink that moves rather than playing an opacity-only cross-fade of 200 ms or less (`spec:AST-094` FR8) fails. Evidence gap: no test exists. | `audit:ContextMenu/behavior` |
| FR5 motion roles | Role registry tests over `spec:AST-094` FR4 | `springs.contextMenuLift`, `springs.contextMenuDismiss` and `springs.contextMenuMorph` at tempo 1 and `'standard'` | A lift, return or grow that plays a curve or a literal instead of its spring role, or a role off its FR4 table value, fails. | `audit:ContextMenu/behavior` |
| DEC-2 | Element-count browser test on the touch story (`spec:AST-017` FR60) | At rest and lifted, fine and coarse pointer | A lift element at rest, a copy of the trigger, a shadow element, or an open count beyond the layer, the anchor and the placeholder fails. Evidence gap: the lift is unbuilt, so no test exists. | `audit:ContextMenu/anatomy` |

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.

Optional (writing rubric R7): "Evidence gap: the lift and the grow are unbuilt, so no test asserts either." (FR5/DD1 row) and "Evidence gap: the lift is unbuilt, so no test exists." (DEC-2 row) state build status. Suggest "Evidence gap: no test asserts the FR31 grow or the FR33 lift." and "Evidence gap: no test counts the lift's elements."

This branch was successfully deployed

1 active deployment
Preview — ae173c13 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant