Skip to content

fix(core): no press scale on a trigger whose own layer is open - #11062

Merged
cixzhang merged 6 commits into
meta:mainfrom
vjeux:dropdown-menu-anchor-box
Nov 13, 2026
Merged

cixzhang merged 6 commits into
meta:mainfrom
vjeux:dropdown-menu-anchor-box

Conversation

@vjeux

@vjeux vjeux commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

User impact

A press on a trigger whose layer is open scales the trigger, so the anchored layer moves and narrows. It happens under a finger on DropdownMenu or MoreMenu, and a mouse in WebKit. It also happens on a Popover's anchor Button and on ghost or secondary selectors.

What led to it: the report in spec:AST-059 DEC-10.

Problem and solution fit

Anchor positioning places a layer against its anchor's transformed box, so the trigger's 0.98 press scale moves the open layer.

A press no longer scales a trigger whose own layer is open, under a mouse or a finger. A scale it had ends at once, so the layer opens against the trigger at rest.

  • Button: no press scale while aria-haspopup and aria-expanded="true" hold. A disclosure button, with no popup, keeps its press.
  • Ghost and secondary selectors (Selector, MultiSelector, ComplexSelector): none while the box holds an expanded combobox.

No DOM, API or layout change. The rule sits in each file's styles, since StyleX resolves a style's keys within its own file.

Expected behavior and authority

architecture:layer-runtime INV22: a layer anchors to the trigger's untransformed box. #11097 previewed the options; this pull request takes "No press while open". INV22's gap line closes, and component:Button FR15 states the open-popup rule. The owners approve the record change.

Smallest restoration

  • A box around the trigger to take the anchor (the first head): it adds DOM.
  • Button's press scale on an inner visual: it changes Button's painting for every caller.
  • No press scale while the trigger's own layer is open (this pull request): styles only.

Evidence

Desktop Chromium, each trigger held while its layer is open, at scale 1: a finger on the menus, a mouse on the rest.

DropdownMenu MoreMenu Popover (anchorRef)
DropdownMenu open, its trigger held at full size MoreMenu open, its trigger held at full size Popover open, its anchor Button held at full size
MultiSelector (ghost) ComplexSelector (secondary)
MultiSelector list open, its trigger held at full size ComplexSelector open, its trigger held at full size
  • Before: on main, 9 INV22 browser cases fail in each engine.
  • After: every case passes in both engines.

Writing rubric results

R1 narration, R2 research, R4 rejected alternatives, R5 change references, R6 open questions: none. R3 evidence: the INV22 browser spec checks each press case, by mouse and by finger.

Scope

Components: Button (and the controls built on it), Selector, MultiSelector, ComplexSelector. Public API: no prop, type, export or default changes.

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

At 1c30abd, on main c8ddb4a. 39275c5 holds the change on main 787369d. Five merges follow: 0f2a369, e0e96b7, bd0c68c, 45f541e and 1c30abd merge main 9b5ad42, 36f68b0, 07c77c0, 248de60 and c8ddb4a. Main's #11406 changes Field/InputClearButton.tsx and utils/themeProps.ts, which this pull request's code imports directly. Main's #11337 also changes layer-runtime.md; the merge keeps main's text and this pull request's three edits. It also brings #11258's and #11337's changes to Layer/useLayer.tsx, which Selector.tsx, MultiSelector.tsx and ComplexSelector.tsx import directly. #11258 also changes Popover/usePopover.tsx, which ComplexSelector.tsx imports directly. The third merge brings #10892's change to Tooltip/useTooltip.tsx, which Button.tsx and ComplexSelector.tsx import directly. The fourth merge brings #10949's and #11447's edits to layer-runtime.md, and again keeps main's text and the three edits. #10949 also changes Selector/Selector.tsx, which this pull request edits, and Git merges it with no conflict. The fifth merge brings #11175's change to hooks/useAnnounceRenderedText.ts, which Selector.tsx and MultiSelector.tsx import directly. It also brings #7677. That changes Button.tsx and Button.spec.md, which this pull request edits, and Popover/usePopover.tsx, which ComplexSelector.tsx imports directly. Git merges both edited files with no conflict.

  1. pnpm exec playwright test --config playwright.interaction.config.ts --project=chromium packages/core/src/Layer/__tests__/LayerPressTransform.interaction.browser.spec.ts: 11 pass, over 2 repeats. The 7 fixme cases from test(Layer): browser cases for INV22, a layer and its trigger's press scale #11028 run, and the WebKit fixme on the mouse DropdownMenu case is gone. Six cases that held a press on an open trigger now check it stays at scale 1.
  2. The same spec in WebKit's CI container: 10 pass and 1 is skipped, over 2 repeats. The skip is the finger Selector case: a raw touch tap makes no click there.
  3. Red first, on main 787369d's build with this spec: 9 fail in Chromium and 9 in WebKit. In Chromium, a mouse press that opens a DropdownMenu already leaves the trigger unscaled, so that case passes there. The ContextMenu case passes on main too, in both engines.
  4. The stills come from a throwaway spec on 39275c5's build: each trigger reads :active or the touch press, with an identity transform.

Local gates: the ui project (25,461), the core type check, strict ESLint, Prettier, pnpm check:knowledge and pnpm review:pre pass. The Node project passes 21,562 cases and fails 4 in theme-compile-private.test.mjs and theme-hunt59.test.mjs. They fail the same way on main 248de60 alone on this machine, even in a fresh clone and home directory. Main's CI at 248de60 passes them. The interaction specs of Layer, the Button family, the selectors, the menus, Popover, Field and Tooltip pass in Chromium: 240 pass, 9 skip. In WebKit's CI container at one worker: 194 pass, 55 skip. Their accessibility specs, with DateInput's audit that main changed after this pull request's last run, pass in Chromium (664). The browser ones pass in WebKit's container (47).

@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 13, 2026 12:40pm 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
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review 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 13, 2026, 12:55 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 10, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 1c30abd

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
Selector 109.8 kB (+18 B) · 18.4 kB CSS (+96 B) — ✗ · ✓ · ✓
Button · Storybook 64.8 kB (+6 B) · 10.8 kB CSS (+56 B) 802 (+4) ✓ · ✓ · ✗
LayerProvider 4.4 kB (0) · 20 B CSS (0) — ✓ · ✓ · ✗
76 more components
Component Size LoC Visual · A11y · RTL
SelectorOption 21.6 kB (0) · 6.4 kB CSS (0) — ✗ · ✓ · ✓
Pagination 120.9 kB (+13 B) · 18.8 kB CSS (+121 B) — — · — · —
MultiSelector · Storybook 101.2 kB (+23 B) · 17.7 kB CSS (+102 B) 2,713 (+5) ✓ · ✓ · ✓
PowerSearch 306.0 kB (+15 B) · 25.2 kB CSS (+102 B) — — · — · —
ComplexSelector · Storybook 77.4 kB (+22 B) · 12.6 kB CSS (+88 B) 737 (+5) ✓ · ✓ · ✓
DateInput 199.5 kB (+20 B) · 17.9 kB CSS (+77 B) — — · — · —
DateTimeInput 223.0 kB (+11 B) · 19.6 kB CSS (+78 B) — — · — · —
ContextMenu 117.5 kB (+9 B) · 18.3 kB CSS (+74 B) — — · — · —
MoreMenu 104.5 kB (+8 B) · 18.5 kB CSS (+74 B) — — · — · —
DropdownMenu 104.2 kB (+7 B) · 18.5 kB CSS (+74 B) — — · — · —
Tokenizer 103.5 kB (+1 B) · 20.0 kB CSS (+76 B) — — · — · —
Markdown 198.6 kB (+7 B) · 21.5 kB CSS (+68 B) — — · — · —
TableHeaderCell 118.3 kB (+9 B) · 18.5 kB CSS (+64 B) — — · — · —
TableCell 118.7 kB (+9 B) · 18.8 kB CSS (+61 B) — — · — · —
Banner 66.9 kB (+9 B) · 11.3 kB CSS (+58 B) — — · — · —
BreadcrumbItem 91.6 kB (+9 B) · 12.9 kB CSS (+58 B) — — · — · —
SideNav 120.6 kB (+9 B) · 12.2 kB CSS (+55 B) — — · — · —
AlertDialog 111.3 kB (+8 B) · 15.4 kB CSS (+55 B) — — · — · —
IconButton 64.9 kB (+7 B) · 10.8 kB CSS (+56 B) — — · — · —
Toast 103.3 kB (+5 B) · 11.1 kB CSS (+58 B) — — · — · —
NumberInput 77.4 kB (+16 B) · 12.2 kB CSS (+46 B) — — · — · —
Stepper 66.6 kB (+9 B) · 10.9 kB CSS (+53 B) — — · — · —
Table 135.6 kB (+6 B) · 19.2 kB CSS (+56 B) — — · — · —
ToggleButton 91.8 kB (+7 B) · 10.9 kB CSS (+55 B) — — · — · —
ChatLayoutScrollButton 65.4 kB (+7 B) · 11.0 kB CSS (+54 B) — — · — · —
CodeBlock 80.1 kB (+7 B) · 12.1 kB CSS (+54 B) — — · — · —
DateRangeInput 99.1 kB (+9 B) · 13.3 kB CSS (+52 B) — — · — · —
MobileNavToggle 65.2 kB (+4 B) · 10.8 kB CSS (+56 B) — — · — · —
TimeInput 174.2 kB (+10 B) · 16.8 kB CSS (+50 B) — — · — · —
ChatLayout 88.2 kB (+8 B) · 11.3 kB CSS (+51 B) — — · — · —
Calendar 75.9 kB (+11 B) · 11.4 kB CSS (+47 B) — — · — · —
ChatComposer 84.3 kB (+9 B) · 12.9 kB CSS (+49 B) — — · — · —
ChatComposerInput 81.9 kB (+7 B) · 12.1 kB CSS (+51 B) — — · — · —
ChatComposerTokenElement 81.9 kB (+7 B) · 12.1 kB CSS (+51 B) — — · — · —
ChatDictationButton 65.4 kB (+5 B) · 10.8 kB CSS (+53 B) — — · — · —
SideNavCollapseButton 65.7 kB (+6 B) · 10.8 kB CSS (+52 B) — — · — · —
TableSelectionToolbar 75.1 kB (+10 B) · 14.0 kB CSS (+48 B) — — · — · —
TabMenu 78.6 kB (+8 B) · 11.9 kB CSS (+50 B) — — · — · —
TopNavMegaMenu 75.9 kB (0) · 12.6 kB CSS (+58 B) — — · — · —
ChatSendButton 65.2 kB (+1 B) · 10.8 kB CSS (+56 B) — — · — · —
FileInput 73.9 kB (+8 B) · 11.7 kB CSS (+48 B) — — · — · —
SideNavItem 76.8 kB (+6 B) · 11.9 kB CSS (+50 B) — — · — · —
Timestamp 35.8 kB (+1 B) · 11.0 kB CSS (+54 B) — — · — · —
TopNavHeading 81.9 kB (+6 B) · 12.0 kB CSS (+49 B) — — · — · —
DialogHeader 67.7 kB (+5 B) · 12.3 kB CSS (+49 B) — — · — · —
Lightbox 145.1 kB (+8 B) · 11.9 kB CSS (+46 B) — — · — · —
Thumbnail 69.2 kB (+5 B) · 12.3 kB CSS (+49 B) — — · — · —
Typeahead 87.4 kB (+5 B) · 13.3 kB CSS (+49 B) — — · — · —
Carousel 74.5 kB (+7 B) · 11.7 kB CSS (+46 B) — — · — · —
Popover 97.7 kB (+5 B) · 15.0 kB CSS (+48 B) — — · — · —
SideNavHeading 82.3 kB (+3 B) · 12.1 kB CSS (+50 B) — — · — · —
TextInput 72.6 kB (+5 B) · 12.0 kB CSS (+48 B) — — · — · —
TopNav 77.5 kB (+6 B) · 11.7 kB CSS (+47 B) — — · — · —
TopNavMenu 81.4 kB (+3 B) · 12.0 kB CSS (+50 B) — — · — · —
BaseTypeahead 78.1 kB (+4 B) · 11.7 kB CSS (+48 B) — — · — · —
DrawerHeader 67.9 kB (+6 B) · 13.7 kB CSS (+46 B) — — · — · —
MobileNav 75.7 kB (+5 B) · 11.4 kB CSS (+47 B) — — · — · —
AppShell 97.0 kB (+6 B) · 14.3 kB CSS (+44 B) — — · — · —
layer — — — · ✓ · —
Layer — — ✓ · ✓ · —
lab/ChatEmojiPicker 112.6 kB (new) · 773 B CSS (new) — — · — · —
lab/ChatReactionBar 113.7 kB (new) · 1.1 kB CSS (new) — — · — · —
lab/CommentComposer 158.9 kB (new) · 1.9 kB CSS (new) — — · — · —
lab/Comments 367.4 kB (new) · 2.5 kB CSS (new) — — · — · —
lab/CommentThread 360.6 kB (new) · 2.4 kB CSS (new) — — · — · —
lab/DialogHeroHeader 88.4 kB (new) · 372 B CSS (new) — — · — · —
lab/DiffViewer 92.7 kB (new) · 2.1 kB CSS (new) — — · — · —
lab/EmojiPicker 92.2 kB (new) · 751 B CSS (new) — — · — · —
lab/ListInput 93.3 kB (new) · 922 B CSS (new) — — · — · —
lab/Schedule 114.4 kB (new) · 3.9 kB CSS (new) — — · — · —
lab/TourStep 92.8 kB (new) · 691 B CSS (new) — — · — · —
lab/TransferList 107.6 kB (new) · 1.2 kB CSS (new) — — · — · —
lab/TransferListSelector 116.5 kB (new) · 1.4 kB CSS (new) — — · — · —
richtext/RichTextEditor 304.1 kB (new) · 2.6 kB CSS (new) — — · — · —
richtext/RichTextEditorToolbar 297.8 kB (new) · 454 B CSS (new) — — · — · —
richtext/RichTextView 281.8 kB (new) · 2.3 kB CSS (new) — — · — · —
Visual changes: 4 snapshots in 1 component

A change is a question for the reviewer, not a failure.

Component · story Before After Diff
Selector · Indicator Space Bottom Sheet Wide Start (neutral, dark) before frame after frame diff frame
Selector · Indicator Space Bottom Sheet Wide Start (neutral, light) before frame after frame diff frame
Selector · Indicator Space Bottom Sheet Narrow End RTL (neutral, dark) before frame after frame diff frame
Selector · Indicator Space Bottom Sheet Narrow End RTL (neutral, light) before frame after frame diff frame

Package size: measured; main has no measurement of the merge base to compare yet.

API changes: unknown (base surface unavailable): richtext, theme-butter, theme-chocolate, theme-gothic, theme-matcha, theme-neutral, theme-stone, theme-y2k

Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.


Generated by PR Enrichment workflow | View full report

@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. The anchor box fixes the press shift: the INV22 finger cases pass on this head and fail on the base. But it changes how the default trigger sizes in its container.

Blocking

  • The new anchorBox (DropdownMenu.tsx:160-162) has neither of Button's minWidth: 0 and maxWidth: '100%' caps and does not carry button.width, so a width: '100%' trigger shrinks to its content and a long label overflows its container instead of truncating (Button FR5); give the box those caps, move button.width onto it with the Button filling it, and add a sized and a narrow trigger case.

The layer-runtime gap-line edit also still needs the repository's spec-owner approval. One smaller note is inline.

[Automated review]

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 4933ecd

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 10, 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.

Changes requested. The anchor box keeps the open menu still under a press (the INV22 finger cases fail on the base and pass on this head), and sized and narrow triggers now lay out as a Button does, so the earlier sizing finding is resolved. One layout case still needs a fix.

Blocking

  • Miss: where a parent stretches its children (VStack and HStack by default, or a Grid cell), the anchor box (DropdownMenu.tsx:162-171) stretches while the Button keeps its size, so the menu anchors to a box larger than the trigger and opens 64 px below a trigger in a 96 px HStack row or spans a VStack under a 97 px trigger (INV22); give the trigger flexGrow: 1 and the box blockSize: 'fit-content', and add VStack, tall-HStack and Grid cases to TriggerSizing.

The inline comment shows the change; the smaller notes are in the review.

[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. The anchor box keeps the open menu still under a held finger (both finger cases fail on the base and pass on this head), and the trigger now lays out as a Button does in a stack, a tall row and a grid cell, which fixes the earlier stretched-parent finding.

  • Miss: layout that callers pass through button.xstyle, button.className or button.style (for example marginInlineStart: 'auto' or flexGrow: 1) no longer places the trigger, because the parent now lays out the box instead of the Button, which spec:AST-017 FR5 makes an incompatible fix that the patch [fix] changeset does not declare; either keep caller layout on the element the parent lays out (for example by putting Button's press scale on an inner visual) or ship the box as [breaking] with a migration note.

Smaller notes: a DropdownMenu InputGroup addon no longer joins the input, the edited INV22 gap line lists a ButtonGroup member although a grouped Button never scales on press (Button FR15), and the comment at DropdownMenu.tsx:161-162 says the opposite of what blockSize: 'fit-content' does.

[Automated review]

Comment thread docs/architecture/layer-runtime.md Resolved
@vjeux
vjeux force-pushed the dropdown-menu-anchor-box branch from 057ca1b to 39275c5 Compare November 12, 2026 20:49
@vjeux vjeux changed the title fix(DropdownMenu): a press on the trigger no longer moves the open menu fix(core): no press scale on a trigger whose own layer is open Nov 12, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 39275c5

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 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.

Approved pending CI: CI has not run on this head yet, since this is a draft from a fork without the ci:run label. Next step: a maintainer adds the ci:run label so CI runs.

An open menu, popover or list now stays still while its trigger is held: the layer press-transform browser suite fails 9 of 11 cases on main and passes all 11 here in Chromium, and a finger check on MultiSelector, ComplexSelector and the anchorRef Button agrees.

Optional follow-ups, noted inline:

  • The Button record's Press design row and verification map still describe an unconditional 0.98 press scale, beside the new FR15 sentence.
  • The INV22 verification row promises finger cases that the spec does not yet have for MultiSelector, ComplexSelector, the secondary Selector and the anchorRef Button.
Claims and files checked
  • Claim: a press no longer scales a Button whose own popup is open, or a ghost or secondary Selector, MultiSelector or ComplexSelector whose list is open. Verified in the four style blocks and by the browser suite.
  • Claim: under a mouse or a finger the open layer stays where an unpressed open puts it. Verified in Chromium (suite plus a finger check on the selectors and the anchor Button).
  • Claim: a disclosure button without a popup keeps its press. Verified from the style condition, which requires a popup attribute; no test.
  • Claim: no DOM, API or layout change. Verified: styles only, and the API surface comparison finds no change from this patch.
  • Claim: the rule sits in each file's styles because StyleX resolves keys per file. Verified: core spells style keys literally in each file.
  • Claim: the INV22 gap closes and Button FR15 states the open-popup rule, with owner approval. Verified, including the engineering-owner approval for this head.
  • Claim: on main 9 browser cases fail per engine, and all pass after. Verified in Chromium; WebKit not run.
  • Claim: 11 cases pass over two repeats, the seven deferred cases now run, and six held cases assert full scale. Verified.
  • Claim: local gates pass. Partly verified: the touched components' unit suites, the knowledge check and ESLint on the changed files pass.
  • Files: .changeset/press-scale-off-while-open.md clear; docs/architecture/layer-runtime.md clear (coverage note); docs/specs/components/Button/Button.spec.md note; packages/core/src/Button/Button.tsx clear; packages/core/src/Selector/Selector.tsx clear; packages/core/src/MultiSelector/MultiSelector.tsx clear; packages/core/src/ComplexSelector/ComplexSelector.tsx clear; packages/core/src/Layer/__tests__/LayerPressTransform.interaction.browser.spec.ts clear (coverage note).

Automated review (maintainer link)

| FR12 | With `tooltip`, the tooltip attaches to the Button element itself (no wrapper element), opens above it, and its content is added to `aria-describedby` after any caller value, unless its trimmed text equals the Button's accessible name as its props decide it (the derived or caller `aria-label`, or `label` when `icon` and `endContent` render nothing or a decorative Icon), as Avatar AR5 does, so a tooltip that repeats the name is not read twice. When the name comes from elsewhere (`aria-labelledby`, or other content in `icon` or `endContent`), the tooltip still describes the Button. IconButton inherits this. | Current source; real-browser accessibility test |
| FR13 | A standalone Button paints the shadow token for its `elevation`. Inside a ButtonGroup it paints no shadow and reflects `data-elevation="none"`, whatever `elevation` says. | `family:buttons` FR8–FR10; current source and tests |
| FR14 | The root carries `astryx-button` and reflects the effective `data-variant`, `data-size`, and `data-elevation`. | `family:buttons` FR10; `architecture:component-theming-surface`; tests |
| FR15 | Hover paints the shared interaction overlay on hover-capable pointers, and a press paints the shared pressed overlay through the press controller: at once under a mouse or a pen (`spec:AST-094` FR11's fine-pointer profile) and on FR11's control profile under a finger, fading out on release on the theme's exit motion tokens (`--duration-exit`, `--ease-exit`; `spec:AST-094` FR5). Under a coarse pointer, while a press is on or fading, Button paints the press on its own `::before`; a caller's `::before` styles apply on top of that layer and win where they overlap, so a decoration that must stay through a touch press belongs on a child element. Without a reduced-motion preference, a standalone Button also scales to 0.98 on a mouse press, or while the touch press reads on; under reduced motion it MUST NOT scale (`design:reduced-motion` DR1). While its own popup is open (`aria-haspopup` with `aria-expanded="true"`), a press MUST NOT scale it, and a scale it had ends at once, so the popup anchors to the Button at rest (`architecture:layer-runtime` INV22). All of this paint follows the element's exposed disabled state: a Button that is natively disabled or exposes `aria-disabled="true"` (busy-only, disabled with a tooltip, or a caller's own `aria-disabled`) shows no overlay and no press scale, even when it stays operable. Inside a ButtonGroup the press scale does not apply. Button's hover and press transitions are fast, and instant under reduced motion. | Current source and tests; `spec:AST-094` FR11 and DEC-21 for the mouse and pen press |

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: this row now has an open-popup exception. The Press row in the design table (line 232) still says "plus a 0.98 scale when standalone and motion is not reduced", and the verification map has no row pointing at LayerPressTransform.interaction.browser.spec.ts, which proves this sentence. Consider adding "while its popup is closed" to that row and an "FR15 (popup open)" verification row.

});

test.fixme('INV22: a press on an open secondary ComplexSelector trigger leaves the list in place', async ({
test('a press on an open secondary ComplexSelector trigger neither scales it nor moves the list', async ({

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: the INV22 verification row says each layer is checked by mouse and by finger. There is no finger case for MultiSelector, ComplexSelector, the secondary Selector or the anchorRef Button, so the selector boxes' [data-astryx-press="on"]:not(:has(…)) arm is never exercised. A finger held on each open trigger moves the list 1.3–1.9 px on main and leaves it in place here. A finger twin of these mouse cases would pin that.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 0f2a369

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 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.

Approved pending CI: CI has not run on this head yet, since this is a draft from a fork without the ci:run label. Next step: a maintainer adds the ci:run label so CI runs.

A trigger whose own menu, popover or list is open no longer takes its 0.98 press scale, so holding it no longer shifts or narrows the open layer. The Button rule and the INV22 verification clause are approved for this head, and the INV22 browser spec fails 9 of its 11 cases on the base and passes all 11 with this patch in Chromium.

Non-blocking follow-ups:

  • The Button record's Press row (Button.spec.md:232) still promises a 0.98 scale with no open-popup exception, and its verification map has no row for the new FR15 sentence.
  • The INV22 row says each layer is checked by mouse and by finger, but the spec has no finger case for MultiSelector, ComplexSelector, the secondary Selector or the anchorRef Button.
Claims and files checked
  • Claim: a press no longer scales a Button whose own popup is open: verified (Button.tsx:104-105, :170, :180, :198; the held cases pass with this patch).
  • Claim: a press no longer scales a ghost or secondary Selector, MultiSelector or ComplexSelector box while its list is open: verified (Selector.tsx:137, MultiSelector.tsx:140, ComplexSelector.tsx:86 and their transform blocks; the mouse cases pass).
  • Claim: under a mouse or a finger the open layer stays where an unpressed open puts it: verified for every mouse case and for the Popover, DropdownMenu and ghost Selector finger cases; the selector boxes' finger arm is verified from code only.
  • Claim: a disclosure button without a popup keeps its press: verified from code (an aria-haspopup other than false is required); no test.
  • Claim: patch-level fix with no DOM, API or layout change: verified; the built API surfaces of Core and the seven themes match between base and patch.
  • Claim: on the base, a press on an open trigger moves the layer (finger on the menus, the Popover anchor Button, ghost and secondary selectors): verified in Chromium; the WebKit mouse part was not reproduced here.
  • Claim: 9 INV22 cases fail on the base and all pass after: verified in Chromium (9 fail and 2 pass on the base; 11 of 11 pass with the patch over 2 repeats); WebKit not reproduced here.
  • Claim: in Chromium the mouse press that opens a DropdownMenu, and the ContextMenu case, already pass on the base: verified.
  • Claim: seven fixme cases now run, the WebKit fixme is gone, and six held cases assert scale 1: verified in the spec diff.
  • Claim: the latest merge brings main's tooltip-hook change, which Button.tsx and ComplexSelector.tsx import directly: verified (both import useTooltip; the merge leaves this pull request's own patch unchanged).
  • Claim: the earlier merges bring main's changes to the clear button, theme props, layer and popover hooks that the selectors import directly: verified from their imports.
  • Claim: the owners approve the record change: verified (an engineering owner's approval names this head).
  • Claim: a preview pull request compared the options and this one takes the press-free option: verified.
  • Claim: the full local unit, type, lint and browser gate tallies: not reproduced here.
  • .changeset/press-scale-off-while-open.md: clear.
  • docs/architecture/layer-runtime.md: clear; the finger-case note above.
  • docs/specs/components/Button/Button.spec.md: the Press row note above.
  • packages/core/src/Button/Button.tsx: clear.
  • packages/core/src/Selector/Selector.tsx: clear.
  • packages/core/src/MultiSelector/MultiSelector.tsx: clear.
  • packages/core/src/ComplexSelector/ComplexSelector.tsx: clear.
  • packages/core/src/Layer/__tests__/LayerPressTransform.interaction.browser.spec.ts: clear; the finger-case note above.

Automated review (maintainer link)

@vjeux
vjeux marked this pull request as ready for review November 13, 2026 07:31
github-actions Bot added a commit that referenced this pull request Nov 13, 2026
@vjeux
vjeux marked this pull request as draft November 13, 2026 09:34
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 45f541e

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 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.

Approved pending CI: CI has not run on this head yet, since this is a draft from a fork without the ci:run label. Next step: a maintainer adds the ci:run label so CI runs.

A trigger whose own menu, popover or list is open no longer takes its 0.98 press scale, so holding it no longer shifts or narrows the open layer. The Button rule and the INV22 verification clause are approved for this head, and the INV22 browser spec fails 9 of its 11 cases against main and passes all 11 with this patch in Chromium.

Non-blocking follow-ups:

  • The Button record's Press row (Button.spec.md:232) still promises a 0.98 scale with no open-popup exception, and its verification map has no row for the new FR15 sentence.
  • The INV22 row says each layer is checked by mouse and by finger, but the spec has no finger case for MultiSelector, ComplexSelector, the secondary Selector or the anchorRef Button.
Claims and files checked
  • Claim: a press no longer scales a Button whose own popup is open: verified (Button.tsx:104-105, :170, :180, :198; the held cases pass with this patch).
  • Claim: a press no longer scales a ghost or secondary Selector, MultiSelector or ComplexSelector box while its list is open: verified (Selector.tsx:137, MultiSelector.tsx:140, ComplexSelector.tsx:86 and their transform blocks; the mouse cases pass).
  • Claim: an applied scale ends at once as the layer opens: verified (the transform transition is dropped while open, at Button.tsx:156 and each selector block; the Selector press-and-release cases pass).
  • Claim: under a mouse or a finger the open layer stays where an unpressed open puts it: verified for every mouse case and for the Popover, DropdownMenu and ghost Selector finger cases; the selector boxes' finger path is verified from code only.
  • Claim: a disclosure button without a popup keeps its press: verified from code (an aria-haspopup other than false is required); no test.
  • Claim: on main, a press on an open trigger moves the layer (finger on the menus, the Popover anchor Button, ghost and secondary selectors): verified in Chromium (the layer moves 1.2 to 1.9 px while held); the WebKit mouse part was not reproduced here.
  • Claim: no DOM, API or layout change, and the rule sits in each file because style keys resolve per file: verified; styles only, the built API surfaces of Core and the seven themes match, a plain constant inlines only within its own file, and no Core style takes a selector key from a shared style-constants file.
  • Claim: a preview pull request compared the options and this one takes the press-free option for every pointer: verified.
  • Claim: the owners approve the record change: verified; an engineering owner's approval names this head.
  • Claim: 9 INV22 cases fail on main and all pass after: verified in Chromium (9 fail and 2 pass against main; 11 of 11 pass over 2 repeats with this patch); WebKit not reproduced here.
  • Claim: the mouse press that opens a DropdownMenu and the ContextMenu case already pass on main in Chromium: verified.
  • Claim: seven deferred cases now run, the WebKit-only deferral is gone, and six held cases assert full scale: verified in the spec diff.
  • Claim: the merges bring main's changes to the tooltip, layer, popover, clear-button and theme-prop modules these files import directly, and keep main's layer-runtime text with this pull request's three edits: verified from the imports and the record diff against main.
  • Claim: the local unit, type, lint and browser gate tallies: not reproduced here.
  • Changeset: a patch fix for Core describing the same behavior: verified.
  • .changeset/press-scale-off-while-open.md: clear.
  • docs/architecture/layer-runtime.md: clear; the finger-case note above.
  • docs/specs/components/Button/Button.spec.md: the Press row note above.
  • packages/core/src/Button/Button.tsx: clear.
  • packages/core/src/Selector/Selector.tsx: clear.
  • packages/core/src/MultiSelector/MultiSelector.tsx: clear.
  • packages/core/src/ComplexSelector/ComplexSelector.tsx: clear.
  • packages/core/src/Layer/__tests__/LayerPressTransform.interaction.browser.spec.ts: clear; the finger-case note above.

Automated review (maintainer link)

@vjeux
vjeux marked this pull request as ready for review November 13, 2026 10:55
github-actions Bot added a commit that referenced this pull request Nov 13, 2026
@vjeux
vjeux marked this pull request as draft November 13, 2026 11:31
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 1c30abd

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 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.

Approved pending CI: CI has not run on this head yet, since this is a draft from a fork without the ci:run label. Next step: a maintainer adds the ci:run label so CI runs.

A trigger whose own menu, popover or list is open no longer takes its 0.98 press scale, so holding it no longer shifts or narrows the open layer. The Button rule and the INV22 verification clause are approved for this head. The INV22 browser spec fails 9 of its 11 cases against main and passes all 11 with this patch in Chromium.

Non-blocking follow-ups:

  • The Button record's Press row (Button.spec.md:241) still promises a 0.98 scale with no open-popup exception, and its verification map has no row for the new FR15 sentence.
  • The INV22 row says each layer is checked by mouse and by finger, but the spec has no finger case for MultiSelector, ComplexSelector, the secondary Selector or the anchorRef Button.
Claims and files checked
  • Claim: a press no longer scales a Button whose own popup is open: verified (Button.tsx:104-105, :170, :180, :198; the held cases pass with this patch).
  • Claim: a press no longer scales a ghost or secondary Selector, MultiSelector or ComplexSelector box while its list is open: verified (Selector.tsx:137, MultiSelector.tsx:140, ComplexSelector.tsx:86 and their transform blocks; the mouse cases and held captures).
  • Claim: an applied scale ends at once as the layer opens: verified (the transform transition is dropped while open, at Button.tsx:156 and each selector block; the Selector press-and-release cases pass).
  • Claim: under a mouse or a finger the open layer stays where an unpressed open puts it: verified for every mouse case and for the Popover, DropdownMenu and ghost Selector finger cases; the selector boxes' finger path is verified from code only.
  • Claim: a disclosure button without a popup keeps its press: verified from code (an aria-haspopup other than false is required); no test.
  • Claim: on main, a press on an open trigger moves or narrows the layer (finger on the menus, the Popover anchor Button, ghost and secondary selectors): verified in Chromium (the layer moves 1.2 to 1.9 px while held); the WebKit mouse part was not reproduced here.
  • Claim: anchor positioning places the layer against the trigger's transformed box: verified by the held captures.
  • Claim: no DOM, API or layout change, and the rule sits in each file because of how StyleX resolves keys: verified; the built API surfaces of Core and the seven themes match, and the repository's own style-constant files note that an imported key changes cascade order.
  • Claim: an earlier preview compared the options and this one takes "no press while open": verified; the preview lists that option for both pointers.
  • Claim: the owners approve the record change: verified; an engineering owner's approval names this head.
  • Claim: 9 INV22 cases fail on main and every case passes after: verified in Chromium (9 fail and 2 pass against main; 11 of 11 pass over 2 repeats with this patch); WebKit not reproduced here.
  • Claim: the mouse press that opens a DropdownMenu and the ContextMenu case already pass on main in Chromium: verified.
  • Claim: seven deferred cases now run, the WebKit-only deferral is gone, and six held cases assert full scale: verified in the spec diff.
  • Claim: the merges bring main's changes to modules these files import, and the edited Button files merge with no conflict: verified; the latest merge is clean and brings only a forced-colors border to Button, with no transform or transition change.
  • Claim: the local unit, type, lint and browser gate tallies and the stills: not reproduced here; this review's own captures agree with the stills.
  • Changeset: a patch fix for Core describing the same behavior: verified.
  • .changeset/press-scale-off-while-open.md: clear.
  • docs/architecture/layer-runtime.md: clear; the finger-case note above.
  • docs/specs/components/Button/Button.spec.md: the Press row note above.
  • packages/core/src/Button/Button.tsx: clear.
  • packages/core/src/Selector/Selector.tsx: clear.
  • packages/core/src/MultiSelector/MultiSelector.tsx: clear.
  • packages/core/src/ComplexSelector/ComplexSelector.tsx: clear.
  • packages/core/src/Layer/__tests__/LayerPressTransform.interaction.browser.spec.ts: clear; the finger-case note above.

Automated review (maintainer link)

This branch was successfully deployed

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

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants