Skip to content

Add adaptive Selector and MultiSelector presentations - #5685

Merged
imdreamrunner merged 9 commits into
feat/adaptive-menu-presentationfrom
feat/adaptive-selector-presentation
Aug 30, 2026
Merged

imdreamrunner merged 9 commits into
feat/adaptive-menu-presentationfrom
feat/adaptive-selector-presentation

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add popover, bottom-sheet, and adaptive presentation modes to Selector and MultiSelector
  • consume Add adaptive menu presentations #5654's neutral adaptive-presentation policy and shared focus-return visibility helper
  • share one selector-specific BottomSheet frame across Selector and MultiSelector
  • preserve existing listbox, search, single-select, and multi-select behavior rather than routing selectors through the menu adapter
  • use content-hugging height and shared safe-area treatment without extra bottom content padding
  • preserve trigger focus after dismissal while suppressing pointer-origin focus rings
  • add Storybook and docsite Bottom Sheet examples for both components

Stack

This PR is intentionally based on #5654. That PR owns the common overlay policy and menu-family adapter; this PR owns only the listbox-specific adapter used by Selector and MultiSelector. #5654 is based on #5395.

Verification

  • 165 Selector tests pass
  • 123 MultiSelector tests pass
  • core typecheck passes
  • repository checks pass

@vercel

vercel Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 30, 2026 7:46am

Request Review

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

@xinzi-bot xinzi-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A real-browser check found a focus regression in both new bottom-sheet presentations. Opening with Enter leaves DOM focus on BottomSheet's generic wrapper, while aria-activedescendant and option key handlers remain on the unfocused listbox. Please move focus into the listbox after the sheet opens and cover this in a browser test. Also fix the changeset handle.

[Automated review]

@rubyycheung

Copy link
Copy Markdown
Contributor Author

Fixed in 66f3756. SelectorBottomSheet now performs an explicit post-mount focus handoff to the owning Selector/MultiSelector search field or listbox, so the lazy BottomSheet mount cannot leave focus on its generic panel. The previous data-autofocus fallback was removed, making the existing keyboard-open regression tests exercise the explicit path for both components (288 focused tests pass). Also corrected the changeset handle to @rubyycheung. ESLint, core typecheck, and changeset validation pass. I also brought the stacked #5654/#5395 fixes into this branch. I attempted a local Playwright/Chromium Storybook check, but the host sandbox denied Chromium Mach-port startup; the automated real-browser review should now be able to verify the explicit focus target.

@xinzi-bot xinzi-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The browser focus issue and changeset handle are fixed, and I found no new blockers at the exact head. @imdreamrunner, this looks ready for your approval.

[Automated review]

@imdreamrunner
imdreamrunner merged commit 2aec1b4 into feat/adaptive-menu-presentation Aug 30, 2026
5 checks passed
rubyycheung added a commit that referenced this pull request Aug 30, 2026
* Improve DropdownMenu responsive fit and presentation guidance

* fix DropdownMenu scroll region keyboard access

* docs clarify compact submenu presentations

* fix DropdownMenu anchor alignment and submenu examples

* fix DropdownMenu submenu spacing

* docs minimize DropdownMenu guidance diff

* fix(DropdownMenu): preserve intrinsic width values

* feat: add adaptive menu presentations

* chore: version packages for v0.5.1 (#5661)

* refactor(i18n): pre-build lookup map for translations (#4696)

* fix(popover): improve responsive fit and focus

* Preserve Popover compatibility when constraining overflow

* Add real-viewport Popover overflow stories

* Refine Popover overflow story

* Restore Popover story dismissal behavior

* docs clarify Popover presentation guidance

* docs render Popover evidence in real viewports

* fix(Popover): address accessibility review

* fix DropdownMenu controlled close navigation

* fix(Popover): observe overflow only while open

* fix(Popover): align mobile presentation behavior

* docs(Popover): tighten bottom sheet spacing

* fix(menu): align mobile bottom sheets

* fix(Popover): hide container focus outline

* fix(ContextMenu): prevent touch selection

* docs(ContextMenu): add bottom sheet example

* fix(MoreMenu): preserve touch feedback

* docs(MoreMenu): add bottom sheet example

* fix(ContextMenu): reliably suppress touch selection

* fix(ContextMenu): improve mobile doc examples

* fix(MoreMenu): reduce bottom sheet padding

* refactor(menu): share adaptive sheet infrastructure

* fix(menu): preserve focus without touch rings

* fix(BottomSheet): keep browser edge surface-colored

* fix(ContextMenu): drill into sheet submenus

* Add adaptive Selector and MultiSelector presentations (#5685)

* feat: add adaptive selector presentations

* fix: refine selector bottom sheet interactions

* refactor(selector): use shared adaptive policy

* fix(selector): preserve focus without touch rings

* fix selectors bottom sheet focus target

---------

Co-authored-by: Cindy Zhang <[email protected]>
Co-authored-by: Li Hongzhang <[email protected]>
@github-actions
github-actions Bot deleted the feat/adaptive-selector-presentation branch August 31, 2026 06:28

This branch was successfully deployed

1 active deployment
Preview — 66f37565 Deployed Aug 30, 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.

3 participants