Skip to content

feat(core)!: default Selector, MultiSelector, and DropdownMenu to adaptive presentation - #6819

Draft
thedjpetersen wants to merge 1 commit into
mainfrom
feat/menus-adaptive
Draft

thedjpetersen wants to merge 1 commit into
mainfrom
feat/menus-adaptive

Conversation

@thedjpetersen

@thedjpetersen thedjpetersen commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Important

Owner decisions needed before merge. This changes a stable default on phones, so the changeset is [breaking] (a 0.x minor) and needs the component owner's approval and a slot in the next minor release plan. The current Selector spec still says the default is popover, so the specification amendment, #6809, must land first. Details under "Owner and specification decisions needed" below.

On a phone, Selector, MultiSelector, and DropdownMenu open a small mouse-sized list anchored to the trigger unless the caller knows to opt in. That list covers the field it belongs to and the content below it, or it gets squeezed until every label is cut off. This PR makes the existing adaptive mode the default: phones get a full-width bottom sheet, and mouse, trackpad, and larger touch screens keep the popover they have today.

Side-by-side 390px phone screenshots after tapping "Actions": before, a narrow popover with every label truncated; after, a full-width bottom sheet listing Edit order, Duplicate, Open receipt, and Cancel order.

At a glance

  • 390px phone: the DropdownMenu goes from a 97px-wide popover with 4 of 4 labels truncated and 32px rows to a full-width sheet with 44px rows and nothing truncated. The default Selector no longer covers its own field and the next card.
  • Unchanged: with a mouse at 1440px, screenshots of both builds are byte-identical. Compound DropdownMenus stay anchored, and an explicit presentation="popover" keeps the old surface on any device.
  • Tests: 15 new tests. 7 fail on main (the phone default, keyboard focus into and out of the sheet, MoreMenu inheritance) and the 8 unchanged-path tests pass on both. Full core suite: 10,664 passed.
  • Compatibility: no type changes, but this changes a stable default on phones, so the changeset is [breaking] (minor). It needs owner sign-off and the Selector spec amendment, both included.
  • Preview stories: Core/Selector and Core/DropdownMenu, each under "Presentation / adaptive by default".
Second view: Side-by-side 390px phone screenshots after tapping the Shipping speed selector

Side-by-side 390px phone screenshots after tapping the Shipping speed selector: before, the option list covers the field, its helper text, and the next card; after, a bottom sheet titled "Shipping speed" opens below the still-visible field.

Every screenshot, measurement file and repro script for this PR: astryx-pr-evidence/menus-adaptive


Primary intent

When a caller does not pass presentation, Selector, MultiSelector, and data-driven DropdownMenu should adapt to phones. On a compact touch screen they open in a modal bottom sheet. On every other device they open in the anchored popover, exactly as they do today.

This is one intent: the zero-config default of the shared presentation vocabulary. It is not three independent fixes. All three components already implement adaptive through the same useAdaptivePresentation policy and the same query, (max-width: 768px) and (pointer: coarse). Each change is one line, and all three share one owner decision and one release entry. Landing only some of them would recreate the inconsistency this PR removes: a phone page where the selectors adapt and the action menus don't, or the reverse. MoreMenu isn't a separate delta. It forwards presentation to DropdownMenu, so it inherits the default, and its docs change only to state that.

User or maintainer impact

  • Who is affected: anyone building with Astryx whose Selector, MultiSelector, DropdownMenu (with items), or MoreMenu is used on a phone and doesn't set presentation. That includes controls composed inside other components: the Pagination page-size selector, Table filter selectors, PowerSearch value editors, and the lab Schedule view menu.
  • Supported state that changes: compact coarse-pointer viewports only, meaning 768px or narrower with a coarse primary pointer.
  • What changes there: the option list or action list opens in a full-width modal BottomSheet instead of a popover anchored to the trigger. The trigger reports aria-haspopup="dialog", focus moves into the sheet, and it returns to the trigger on close.
  • What stays the same: mouse, trackpad, and large touch screens. The 1440px screenshots before and after this change are byte-identical. Compound (children) DropdownMenus are unchanged, and any explicit presentation always wins.
  • What it enables: every existing call site gets touch-sized, unclipped menus on phones without touching code.
  • What it prevents: the default phone menu covering its own field and the next card, and being clamped narrow enough to truncate every label.

Problem and solution fit

Why does it occur? presentation defaults to popover on all three components. adaptive has shipped for a while, but it's opt-in. A caller who doesn't know to ask for it, and most don't, gets the mouse surface on a phone. The DropdownMenu JSDoc example even told callers to write their own media query (presentation={useBottomSheet ? 'bottom-sheet' : 'popover'}).

Why does that harm the task? In a 390px touch viewport, the default Selector's list lays the selected row over the trigger. It covers the field's label, the trigger, and the helper text, plus 69px of the next card. The default DropdownMenu opens as a 97px-wide popover, clamped to the space between the trigger and the viewport edge. All four of its labels are truncated ("Edit or…", "Duplic…") and its rows are 32px tall, under the 44px touch target used elsewhere.

Why does that matter? These are among the most-used components. In a blind agent-built UI benchmark (three AI coding models one-shot built 24 real product screens, and two model judges scored screenshots at 1440px and on a 390px phone), Selector appeared in 40% of Astryx builds and DropdownMenu in 52%. "Panels covering content" was 8.8% of all judge notes on Astryx pages, and "clipped or wrapping buttons and controls" was 5.8%. The date inputs already pick their surface from the device, so a page mixed device-aware pickers with mouse-only menus. Changing the default fixes every call site at once, including composed ones, with no new API and no media query at the call site.

Delta map

Delta Role Maps to
presentation = 'adaptive' default in Selector.tsx and MultiSelector.tsx; ?? 'adaptive' for items in DropdownMenu.tsx Primary The default itself
JSDoc @default and prop docs in Selector, MultiSelector, DropdownMenu, and MoreMenu (en and zh) Supporting Docs and types must state the new default. MoreMenu's JSDoc still said 'popover', which is wrong once DropdownMenu's default changes.
Best-practice guidance lines Supporting Old guidance said to opt in with adaptive. It now says to keep the default and pin popover only when product policy needs it.
DropdownMenu JSDoc example; the DropdownMenu — Adaptive presentation CLI block Supporting Both hand-wired a media query (the block used a narrower 639px + hover: none policy). That is redundant now and teaches the wrong pattern, so both rely on the default.
New consumer examples in Selector.doc.mjs and DropdownMenu.doc.mjs Supporting A finished phone-ready composition, plus the opt-out
Storybook AdaptiveByDefault stories; adaptive added to DropdownMenu's control options Supporting Preview evidence. The control could not represent the new default without it.
Docsite data tests (apps/docsite/src/__tests__/data-extraction.test.ts) Supporting They pinned the old popover default and the hand-wired media query in the DropdownMenu block. They now assert the adaptive default, that the block wires no media query, and that it is no longer cross-listed on the useMediaQuery page.
Focused tests Supporting Fail before, pass after, plus the unchanged paths

No tagalongs. Explicitly left out:

  • ContextMenu: point-anchored long-press menu, still defaults to popover.
  • The adaptive query itself: still width plus coarse pointer, not the date inputs' pointer-only test (see spec:AST-043 OQ1).
  • Popover edge clamping that truncates a pinned popover menu near the viewport edge: a separate defect.

Representative callsite (unchanged source, new result on phones)

// Before: to adapt on phones, the caller had to know to opt in (or write a media query).
<Selector label="Shipping speed" options={speeds} value={speed} onChange={setSpeed} presentation="adaptive" />
<DropdownMenu button={{label: 'Actions'}} presentation={isCompactTouch ? 'bottom-sheet' : 'popover'} items={actions} />
// After: the zero-config call adapts. Phones get a bottom sheet; everything else keeps the popover.
<Selector label="Shipping speed" options={speeds} value={speed} onChange={setSpeed} />
<DropdownMenu button={{label: 'Actions'}} items={actions} />

// Keeping the previous behavior for a specific control is one prop:
<Selector label="Sort by" variant="ghost" presentation="popover" options={sorts} value={sort} onChange={setSort} />

Caller decisions added: none for new code. Existing code that relies on the anchored list on phones must add presentation="popover". No codemod is provided, because rewriting every call site to popover would undo the change for every project that runs astryx upgrade --apply.

Authority

  • Direct owner, component:Selector (current): its Compatibility section says "presentation defaults to popover" and its Public concepts table lists popover as the default. FR4, which defines what each value does, is unchanged. This PR contradicts that current claim, so the spec amendment below must be approved and merged before this PR (or at the same exact head). Proposed amendment, ready to apply: spec(Selector): record adaptive as the default presentation (DEC-1) #6809. It runs pnpm check:knowledge clean after applying. It:
    • changes the default in Compatibility and in the Public concepts table to adaptive
    • updates the "compact coarse pointer" representative state to "Default or explicit adaptive, or explicit bottom-sheet"
    • qualifies "Released defaults and behavior remain unchanged by this record" with "except the presentation default that DEC-1 changes"
    • adds DEC-1 — Default presentation is adaptive, whose rejected alternatives are: keep popover; switch to a pointer-only query; ship a codemod that pins popover
  • component:MultiSelector and component:DropdownMenu: both are draft, so no amendment is required. DropdownMenu's "Released default preserved: yes" line describes that draft's own documentation-only scope.
  • Pattern followed: spec:AST-043 (current), the date/time input presentation spec. The date inputs default to a device-adaptive surface (adaptive-native). An explicit value always renders the named surface (FR1 forced values), and docs, types, and Storybook controls show the values and default (FR5). This PR applies the same three rules to the menu and selector vocabulary. It doesn't rename adaptive (AST-043 OQ1, out of scope) and doesn't change the query adaptive resolves against.
  • Family records:
    • family:input-fields: Selector and MultiSelector. No family claim covers popup surface choice.
    • family:overlay-dismissal: all three. Both surfaces already participate. The record notes "Adaptive BottomSheet paths inherit BottomSheet's adoption gap" (BottomSheet's dismissal is still local). This PR makes that path the phone default, so I verified nested dismissal in a real browser (below): Escape and selection close only the sheet, not a surrounding Dialog or Popover.
  • Release classification: spec:AST-017 (current). FR3 counts defaults and documented interaction behavior as released contract. On compact touch this switches a stable default and the popup semantics (listbox or menu to modal dialog), so the changeset is [breaking], a minor bump while on 0.x, as CONTRIBUTING requires for stable default changes. FR31 allows a default switch only through an approved lifecycle id pair in a frozen minor plan.

Change and evidence

Tests (fail before, pass after). 15 new or rewritten tests in default presentation blocks. Each file answers only the shared COMPACT_TOUCH_PRESENTATION_QUERY, so the tests track the policy the component actually reads.

Test Before (origin/main source) After
Selector: opens a bottom sheet on compact touch (and aria-haspopup="dialog") ✗ ✓
Selector: keyboard focus moves into the sheet and back to the trigger after a selection ✗ ✓
Selector: keeps the anchored popover without compact touch ✓ ✓
Selector: explicit popover stays anchored on compact touch ✓ ✓
MultiSelector: opens a bottom sheet on compact touch ✗ ✓
MultiSelector: keyboard focus moves into the sheet ✗ ✓
MultiSelector: popover without compact touch / explicit popover on compact touch ✓ ✓ ✓ ✓
DropdownMenu: items menu opens a BottomSheet on compact touch ✗ ✓
DropdownMenu: Escape returns keyboard focus to the trigger from the sheet ✗ ✓
DropdownMenu: popover without compact touch / explicit popover / compound menu on compact touch ✓ ✓ ✓ ✓ ✓ ✓
MoreMenu (composed): inherits the adaptive BottomSheet on compact touch ✗ ✓
MoreMenu: explicit popover stays anchored on compact touch ✓ ✓

Before: 7 failed, 8 passed (the 8 are the unchanged paths). After: 15 passed. RTL and dark mode are not involved: no logical properties or colors change, and the sheet and popover surfaces are untouched.

Real-browser measurements. Scratch Vite app using the Neutral theme. Chromium, 390×844 with isMobile and hasTouch (the compact-touch query matches), and 1440×900 with a mouse (it doesn't). "Before" is the origin/main build and "after" is this head. The page is an order screen with a "Shipping speed" Selector and an "Actions" DropdownMenu. The raw data is in evidence/{before,after}-{measure,probe,aria-390}.json.

State Before After
390 touch, Selector open: surface Anchored popover, non-modal, 334×216 at y=85 Modal BottomSheet, 390×313 at y=579
390 touch, Selector open: page content covered Field label, trigger, and helper text, plus 69px of the next card None (sheet docks at the bottom over a scrim)
390 touch, Selector: trigger aria-haspopup / accessible names listbox / listbox unnamed dialog / dialog and listbox both named "Shipping speed"
390 touch, DropdownMenu open: surface Anchored popover, 97×153 (clamped to the space right of the trigger) Modal BottomSheet, 390×290
390 touch, DropdownMenu: action rows 32px tall × 89px wide 44px tall × 380px wide
390 touch, DropdownMenu: truncated labels 4 of 4 ("Edit order", "Duplicate", "Open receipt", "Cancel order") 0
390 touch, DropdownMenu: semantics menu "Actions" with menuitems dialog "Actions" with buttons (the existing bottom-sheet presentation)
390 touch, MultiSelector / MoreMenu Anchored popover Modal BottomSheet (MultiSelector listbox unnamed before and after; its dialog is named "Tags")
390 touch, compound DropdownMenu Anchored popover Anchored popover (unchanged)
1440 mouse, page / Selector open / DropdownMenu open Popover (664×216 / 131×153) Byte-identical screenshots
Horizontal overflow, any state 0px 0px

Keyboard and focus (real browser, after).

  • At 390, Enter on the Selector trigger opens the sheet and focuses the listbox. ArrowDown then Enter selects "Express", closes the sheet, and returns focus to the trigger. Reopening and pressing Escape closes it and returns focus again.
  • Enter on the DropdownMenu trigger opens the sheet and focuses the first action. Escape closes it and returns focus to "Actions". Arrow keys don't move between sheet actions (Tab does), which is the existing bottom-sheet behavior.
  • At 1440 the keyboard behavior matches main: listbox via aria-activedescendant, and ArrowDown moves between menuitems.

Composition (real browser, 390 touch).

  • A Selector inside a Popover: the sheet opens over the Popover, picking "Express" commits the value, and the outer Popover stays open.
  • A Selector inside a purpose="form" Dialog: Escape closes only the sheet and leaves the Dialog open. Picking "Overnight" commits the value and leaves the Dialog open.
  • MoreMenu: the sheet opens, and "Rename" fires its onClick. No page errors in any state.

Evidence images (to drag in):

Preview stories:

  • Core/Selector → Presentation / adaptive by default (AdaptiveByDefault)
  • Core/DropdownMenu → Presentation / adaptive by default (AdaptiveByDefault)

Each story shows 320px, 390px, and wide frames with the default component, plus a line saying which surface this device resolves to. Frame width alone doesn't switch the surface. Open the story on a phone, or in device emulation with touch, to see the sheet.

Consumer examples (astryx component Selector / astryx component DropdownMenu):

  • Selector: "Checkout field that fits a phone" and "Keep the anchored popover on phones"
  • DropdownMenu: "Page actions that fit a phone" and "Keep the anchored popover on phones"
Global-baseline review receipt (regenerated at this head; 38 matched claims)

Review receipt. Produced by node scripts/review-global-baselines.mjs --authority-commit 217f41d74ec41aee7f6895ea53e8b6035831f3b7 --review-head cb43a696596ab81c81dfa97fb0691aef55bf51f5 --triggers public-api,behavior,accessibility. It returned 41 matches (the full JSON is in review-receipt.txt):

  • Trigger public-api (reason: requested trigger matched the review-applicability:v1 claim).
    • architecture:public-component-api
      • INV9 "Released APIs change deliberately.": applies. The default change is explicit, [breaking], and gated on an owner decision.
      • INV2 "Names carry the same meaning.": applies. adaptive keeps its existing meaning.
      • INV3 "One prop controls one independent concept.": applies. No new prop.
      • INV5 "Accepted consumer props are preserved.": applies. Every value still works and an explicit value wins.
      • INV1, INV4, INV6, INV7, INV8, INV12: no delta. No exports, props, styling inputs, handlers, or refs change.
    • spec:AST-002
      • DEC-1, DEC-2, DEC-6, FR4, FR15: apply. No new public input. The default uses an existing, enforceable value.
      • DEC-3, DEC-7, DEC-8: no delta.
    • architecture:container-padding INV3, INV7, INV9, INV10, INV11: no delta. No padding or bleed surface changes.
  • Trigger accessibility (reason: requested trigger matched the review-applicability:v1 claim).
    • spec:AST-020
      • FR1 (WCAG 2.2 A/AA baseline): applies. The phone default gains a named dialog and listbox, and menu rows go from 32px to 44px.
      • FR2 (APG defines an adopted pattern): applies. The sheet uses the already-shipped modal dialog pattern.
      • FR6 (evidence layers keep distinct proof boundaries): applies. Unit tests, Chromium, and ARIA snapshots were run; real AT was not.
    • spec:AST-009
      • FR2 and FR7: focus destination and return are proved at the browser layer, and they don't trigger real AT on their own.
      • FR3 and FR13: the phone default's role changes (DropdownMenu goes from menu/menuitem to dialog with buttons, and Selector from listbox popup to modal dialog containing the listbox). This PR claims no new announcement or mode behavior. It reuses the existing bottom-sheet semantics already shipped behind explicit presentation, so I did not run a mobile screen reader. See owner decisions.
      • FR1, FR4, FR5, FR6, FR9–FR12, FR14–FR16: no announcement, live-region, virtual-cursor, or known-divergence claim.
  • Trigger behavior: no global claim matched. The direct owners govern, as listed under Authority.

Owner and specification decisions needed (plain):

  1. Approve or reject the new default. The component owner decides, because component:Selector is current and says popover. If approved, merge spec(Selector): record adaptive as the default presentation (DEC-1) #6809 as its own specification PR, filling in the DEC-1 decider and date, before or at this PR's exact head. If rejected, close this PR. There is no partial version worth landing.
  2. Release owner: admit it to the next minor. Under spec:AST-017 FR3/FR31 this is a stable default switch. The changeset is [breaking] (minor), and the release plan needs to assign its lifecycle and cleanup ids.
  3. Optional real-AT pass. If the accessibility owner treats the phone role change as an AT-dependent claim under spec:AST-009 FR3/FR13, run VoiceOver with iOS Safari on the two stories before merge.
  4. Interplay with spec:AST-043 OQ1. If menus later rename adaptive to adaptive-bottom-sheet, this default renames with it under that deprecation.

Scope

  • This PR has one primary intent.
  • Independently removable deltas were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

Commands run, all from the repo root with Node 24 unless noted:

  • Focused, fail before: npx vitest run --root . packages/core/src/{Selector/Selector,MultiSelector/MultiSelector,DropdownMenu/DropdownMenu}.test.tsx packages/core/src/MoreMenu -t "default presentation" with the three source files reset to origin/main. Result: 7 failed, 8 passed.
  • Focused, pass after: the same command. Result: 15 passed.
  • Component and doc suites: npx vitest run --root . packages/core/src/Selector packages/core/src/MultiSelector packages/core/src/DropdownMenu packages/core/src/MoreMenu packages/core/src/docPropLiterals.test.ts packages/core/src/docPropReferences.test.ts packages/core/src/docs-script.test.mjs. Result: 13 files, 572 passed.
  • CLI template and doc suites: npx vitest run --root . packages/cli/api/template packages/cli/authoring/doctypes/template packages/cli/clients/cli/commands/{component-package,external-showcase}.test.mjs packages/cli/foundation/doc-compiler/inputs.test.mjs packages/cli/test/{golden-reads,doc-routes,docs-graph,invalid-component-metadata.regression}.test.mjs. Result: 19 files, 173 passed.
  • Full core suite, once: npx vitest run --root . packages/core. Result: 359 files, 10664 passed, no unhandled errors.
  • Typecheck:
    • pnpm -F @astryxdesign/core typecheck: clean.
    • pnpm -F @astryxdesign/core typecheck:docs: clean.
    • pnpm -F @astryxdesign/cli typecheck:template-docs: clean.
    • pnpm -F @astryxdesign/storybook typecheck: 0 errors in the touched stories. 41 errors elsewhere: 38 are theme and vega workspace packages that aren't built in this checkout, and 3 are chart-story implicit-any errors that follow from them; the error list is identical on origin/main (diffed).
  • pnpm check:repo: passes, also through the pre-commit hook.
  • node packages/cli/clients/cli/bin/astryx.mjs component Selector --dense and component DropdownMenu --dense: the new examples render.
  • Browser: core pnpm build at origin/main and at head, overlaid into the scratch Vite app, then Playwright shoot.cjs (screenshots and measurements), probe.cjs (keyboard, focus, and composition), a11y.cjs (ARIA snapshots), and sharp compare.cjs.

Note

Rebased onto main @ 217f41d with no conflicts. At this head, the focused tests, core typecheck, ESLint and check:repo were re-run and pass, and the global-baseline receipt was regenerated (same matched claims). Screenshots and measurements were captured against main @ eedc844; the regression tests that encode them pass at this head.

@vercel

vercel Bot commented Oct 1, 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 Oct 1, 2026 3:29am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 27, 2026, 12:01 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: Storybook and Sandbox are not both ready on the exact-head Vercel preview.

Modified Components

MoreMenu (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 87 -
Complexity N/A Low (4) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.9KB 1.2KB

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

15 of 420 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Chat Full AI Chat probe light 155,733
Chat Full AI Chat probe dark 155,005
Chat Default neutral dark 33,205
Chat Default neutral light 32,876
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,229
Chat With Attachments probe dark 11,065
SideNav Resizable in AppShell probe dark 3,208
Markdown Default probe dark 897
Markdown Default probe light 897
Markdown Default neutral dark 882
Markdown Default neutral light 858

Generated by PR Enrichment workflow | View full report

…ptive presentation

Need: Selector, MultiSelector, and data-driven DropdownMenu defaulted to
`presentation="popover"`. On a phone, a call site that did not know to opt
in opened a mouse-sized list anchored to the trigger. In a 390px touch
viewport the default Selector list covered the field's own label, helper
text, and the next card. The default DropdownMenu opened a 97px-wide menu
with 32px rows, and every label in it was truncated. The `adaptive`
surface already existed for all three components, and the date inputs
already pick their surface from the device, but only callers who knew to
ask for it got it.

Model: when `presentation` is omitted, Selector and MultiSelector resolve
`adaptive`, and so does DropdownMenu when it gets `items`. `adaptive` uses
the shared compact-touch query, `(max-width: 768px) and (pointer: coarse)`:
a modal BottomSheet on a phone, the anchored popover everywhere else.
MoreMenu forwards to DropdownMenu, so it follows. Compound (children)
DropdownMenus stay anchored, and an explicit `presentation` always wins.
The prop docs, JSDoc, consumer examples, the adaptive DropdownMenu block,
and the Storybook controls now describe the default.

Compatibility: no type changes, but a stable default changes, so the
changeset is [breaking] (minor while 0.x). Mouse, trackpad, and larger
touch screens render exactly what they rendered before (the 1440px
screenshots are byte-identical). On compact touch screens the default
becomes a modal dialog: the trigger reports `aria-haspopup="dialog"`,
focus moves into the sheet, and it returns to the trigger on close. Pass
`presentation="popover"` to keep the anchored list for a specific control.
@imdreamrunner

Copy link
Copy Markdown
Contributor

Based on Ruby’s feedback, I’d prefer to keep the current default presentation unchanged and make the popover wider when its content is long.

@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 is on hold for an owner decision, and five fixes are needed either way.

Owner decision: the Selector spec on main makes adaptive the default (DEC-1), but the MultiSelector, DropdownMenu and MoreMenu specs, which became current on main after the last review, keep popover; DEP-0011 lists those defaults as open, and a maintainer commented here that they prefer popover with a wider popover. An engineering owner either withdraws DEC-1, and this PR closes, or updates those three records to make adaptive their default and records the decision with /approve-spec <full head SHA> on the pull request; the author may do so as an engineering owner.

Required changes:

  • Newly live check: the Selector presentation default change is outside this pull request's declared scope, because the title's core scope names no component and ## Scope has no Components: line; name Selector in the scope.
  • Newly live check: the MultiSelector presentation default change is outside this pull request's declared scope for the same reason; name MultiSelector in the scope.
  • Newly live check: the DropdownMenu presentation default change is outside this pull request's declared scope for the same reason; name DropdownMenu in the scope.
  • Newly live check: the MoreMenu presentation default change is outside this pull request's declared scope for the same reason; name MoreMenu in the scope.
  • Newly live check: the two AdaptiveByDefault stories copy the compact-touch query (Selector.stories.tsx:177, DropdownMenu.stories.tsx:1096) instead of relying on the component's own resolver, which on main already answers differently, so drop the copied query and the device line.

Before merge, rebase onto main and wait for main to declare a minor so the [breaking] Changeset can merge; in the rebase, describe main's compact definition in place of "768px or narrower" and name the Pagination, PowerSearch and Table selectors, which have no opt-out.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — 93db453f Deployed Oct 1, 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