Skip to content

preview only, do not merge - #11097

Closed
vjeux wants to merge 1 commit into
meta:mainfrom
vjeux:preview/press-scale-choice
Closed

vjeux wants to merge 1 commit into
meta:mainfrom
vjeux:preview/press-scale-choice

Conversation

@vjeux

@vjeux vjeux commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Preview only: main (9f4ff7b) plus one sandbox page, /sandbox/pages/press-scale-choice/, for the press-scale decision on a trigger whose own layer is open.
Options A and W are simulated on that page only, through public props; no component changes.
Do not merge; it closes after the decision.

Testing

At 0142178, on main 9f4ff7b, in the page's local build in Chromium. Each trigger is held after its layer opens. The table gives the open layer's largest move in px (x, y, width) over the hold.

Row Today, mouse Today, finger A W
Popover, own trigger 0 0 0 —
Popover, anchorRef 0.70, 0.31, 0 0, 0.31, 0 0 —
Selector, ghost not holdable not holdable 0 —
Selector, secondary not holdable not holdable 0 —
MultiSelector, ghost 1.13, 0.31, −2.25 1.22, 0.31, −2.44 0 —
MultiSelector, secondary 1.13, 0.31, −2.25 1.22, 0.31, −2.44 0 —
ComplexSelector, secondary 1.89, 0.27, 0 1.89, 0.27, 0 0 —
DropdownMenu the press closes it 1.02, 0.31, −2.03 0 0 (finger)
  • A covers both pointers. A ghost or secondary Selector's list covers its trigger, so it cannot be held.
  • DropdownMenu's touch hold under A: the trigger's scale is 1 in the menu's first frame, and the menu does not move during the hold.
  • A press and release that closes a layer, on every row, Today and A: the layer shows no frame after it closes. A touch close plays on the layer's exit copy, which is not anchored.
  • W, simulated: a click does not open the menu, because the box, not a button, holds the press-open. A finger opens it.
  • The page at desktop and phone widths, light and dark: the document scrolls in each. Strict ESLint and Prettier pass.

@vercel

vercel Bot commented Nov 10, 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 10, 2026 10:14pm UTC

Request Review

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

astracat-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 10, 2026, 10:27 PM UTC

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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.

Changes requested: this preview page is not ready to merge, and the description already plans to close it after the decision.

  • The page says Option A covers "the selectors" (page.tsx:271), but its Selector and MultiSelector rows use the default input variant, which has no press scale, and get no Option A style, so add secondary or ghost Selector and MultiSelector rows with A applied through controlXstyle (and a Popover with anchorRef), or narrow the claim to what the page measures.
  • The page is written to one reader (the dated rule quote at page.tsx:239, "your extra sign-off" at :298-299 and the reply prompt at :321-324), so close it without merging as planned, or rewrite it as a neutral comparison if it should stay.

The page also does not measure a press that closes an open layer under Option A; the layer still counts as shown while it animates out, so that row is incomplete.

[Automated review]

A page that explains what a press does to a trigger whose own popover or
menu is open, with a try-it for options A and W on five controls. Both
are simulated on the page through public props; no component changes.

@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.

Changes requested: this preview page is not ready to merge, which matches the plan to close it after the decision.

  • The page is written to one reader (the dated rule quote at page.tsx:310, "your extra sign-off" at :370-371 and the reply prompt at :403-404), so close it without merging as planned, or rewrite it as a neutral comparison if it should stay.
  • Miss: non-blocking. With a finger, the simulated W menu closes when the finger lifts, while Today and A keep it open; the page warns only that a click cannot open it (page.tsx:318-319), so say that too.

The earlier selectors point is fixed: the ghost and secondary Selector and MultiSelector rows and the anchorRef Popover row now carry Option A, and the moves the page states for today reproduce in Chromium within 0.05 px, with A holding each layer still.

[Automated review]

@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.

Changes requested: this preview page is not ready to merge, which matches the plan to close it after the decision.

  • The page is written to one reader (the dated rule quote at page.tsx:307, "your extra sign-off" at :368-369 and the reply prompt at :401-402), so close it without merging as planned, or rewrite it as a neutral comparison if it should stay.

Non-blocking: with a finger, the simulated W menu closes when the finger lifts while Today and A keep it open, and the warning at page.tsx:316 mentions only the click. The moves the page states for today reproduce in Chromium within 0.1 px, A holds each probed layer still, and an open ghost or secondary Selector's list does cover its trigger, as the page now says.

[Automated review]

Open each control, then press and hold it. Watch the edge of the open
layer. Option B needs a change inside Button and each selector, so
this page cannot show it. W changes only the DropdownMenu row, and its
box is simulated for a finger: a click cannot open it here. A ghost or

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.

Non-blocking. In Chromium's touch emulation a held finger opens W's menu and holds it still, but the lift closes it (aria-expanded returns to false and focus stays on the W option); under Today and A the same hold leaves the menu open with focus in it. Say here that the simulated menu also closes when the finger lifts, so a reader does not take that for W's behaviour.

@cixzhang

Copy link
Copy Markdown
Contributor

(Posted by Cindy's agent.) Thank you for this preview, @vjeux! It made the press-scale choice easy to see, and the decision shipped in #11062, so this preview isn't needed anymore. Closing it, as its description planned.

@cixzhang cixzhang closed this Nov 16, 2026

This branch was successfully deployed

1 active deployment
Preview — 0142178c Deployed Nov 10, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants