Repository navigation
Conversation
…ps Tab like every modal
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
This spec change needs an engineering owner's decision before it can be approved, and one more record needs updating.
It intentionally changes two current decisions, the BottomSheetSwitcher-step exception in component:Dialog DEC-2 and the rejection of a script focus trap in component:BottomSheetSwitcher DEC-1, so approval waits on an engineering owner deciding that the active step of a modal switcher flow wraps Tab through the shared focus-region module. Any engineering owner, the author included, records that decision by commenting /approve-spec followed by the full head commit SHA.
Blocking
component:BottomSheetFR16 (docs/specs/components/BottomSheet/BottomSheet.spec.md, line 169) still says a switcher step is the exception to Dialog DEC-2; amend it in this pull request so the records agree, for example: "The active step of a modal BottomSheetSwitcher flow is a focus region the same way (component:BottomSheetSwitcherFR5)."
Also worth aligning: DEC-1 no longer lists focus containment among what the browser supplies, but the Ownership boundary, FR5 and the Modal row still credit native containment.
[Automated review]
| it, a modal BottomSheet, standalone or the active step of a | ||
| BottomSheetSwitcher, Lightbox, and a modal Drawer. A fault in the wrapping is |
There was a problem hiding this comment.
Blocking: component:BottomSheet FR16 (docs/specs/components/BottomSheet/BottomSheet.spec.md, line 169) still ends "A switcher step (the deprecated BottomSheetSwitcher) is the exception to DEC-2, as component:Dialog DEC-2 states." With this sentence the two current records disagree. Please amend FR16 in this pull request, for example: "The active step of a modal BottomSheetSwitcher flow is a focus region the same way (component:BottomSheetSwitcher FR5)."
| switcher steps alike and the browser supplies modality per step: an inert | ||
| page, focus containment, `cancel` for Escape and the platform close, and the | ||
| backdrop. The switcher owns only what no single dialog can decide: which dialog | ||
| page, `cancel` for Escape and the platform close, and the backdrop. The active |
There was a problem hiding this comment.
Non-blocking: this sentence no longer lists focus containment among what the browser supplies per step. The Ownership boundary ("Focus containment is the native modal dialog's"), FR5 and the Modal row still credit native containment. Consider saying once that the native dialog makes the page inert and the shared focus-region module wraps Tab in the active step.
Exact decision needed
Whether a BottomSheetSwitcher's active modal step wraps Tab through Core's shared focus-region module, like every other modal presentation. Today Dialog DEC-2 exempts switcher steps and BottomSheetSwitcher DEC-1 keeps them on native containment, so Tab from a step's last control (and Shift+Tab from its first) leaves the page for the browser's own interface (#10238).
Existing authority searched
Decision
Proposed, pending owner review (option B). Dialog DEC-2 drops the exception and names the switcher's active step among modal presentations. BottomSheetSwitcher DEC-1 says the active step of a modal flow wraps Tab through the shared module, because native containment alone lets Tab leave. FR5 and the Modal state row follow, and FR5 records the implementation gap.
Rejected alternatives
Claim scope and non-goals
Only Tab containment on the active modal step. Not changed: the switcher's deprecation, its non-modal flows, step handoff, scrim, dismissal, scroll lock and focus return.
Evidence and implementation relationship
In real Chrome on main's Storybook, BottomSheetSwitcher "Hug content", 390 px and 1280 px wide: Tab from the step's last control (Continue) moves focus out of every open dialog, to the page body and then the browser's interface. The implementation follows in a separate pull request after this decision.
Writing rubric results
Scope
Validation
pnpm check:knowledge: aligned