Repository navigation
Add adaptive Selector and MultiSelector presentations - #5685
imdreamrunner merged 9 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… into feat/adaptive-selector-presentation
… into feat/adaptive-selector-presentation
… into feat/adaptive-selector-presentation
xinzi-bot
left a comment
There was a problem hiding this comment.
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]
… into feat/adaptive-selector-presentation
|
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
left a comment
There was a problem hiding this comment.
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]
2aec1b4
into
feat/adaptive-menu-presentation
* 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]>
Summary
popover,bottom-sheet, andadaptivepresentation modes to Selector and MultiSelectorStack
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