Repository navigation
Conversation
Preserve the composable and configured contracts while letting the browser own modal focus containment and inertness. Keep invoker commands out of this slice. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2 tasks done
🦋 Changeset detectedLatest commit: bdc0a79 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This was referenced Nov 25, 2026
Contributor
|
This was referenced Nov 25, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the native-host experiment from #7287 as a separate, default-off review. Modal hosting uses browser dialog behavior; anchored hosting remains non-modal. Command/invoker enhancement is intentionally deferred to the next PR.
Stack
Part 5/8 of the SelectPanel split. Review this PR against its selected base, #8843, rather than against
main.mainThe complete integration branch retains all slices for testing; it is not the base of any focused PR. Related independent AnchoredOverlay ID fix: #8837. This split does not close #7287.
Changelog
New
Native modal-dialog and manual-popover hosts, ownership documentation, compatibility guards, and native/configured contract tests behind
primer_react_select_panel_native_dialog.Changed
React remains authoritative for open state. Native modal variants use browser modality; anchored variants permit focus to leave. Existing positioning utilities and shared reference-counted scroll locking are reused, with conservative fallbacks for unsupported configurations and configured panels inside the legacy Dialog.
Removed
None.
Rollout strategy
primer_react_select_panel_native_dialogdefaults to false. Configured native adoption also requires the adapter flag and compatibility checks. Keep compatibility hosting available as the rollback path. Includes a minor changeset.Testing & Reviewing
Review the native ownership matrix and test modal inertness/focus containment versus anchored Tab/outside dismissal, controlled external close reconciliation, focus return, late content, nested scroll locks, heading/ref contracts, and legacy-Dialog fallback. Non-default positioning stays on compatibility hosting; no bespoke positioning engine is introduced.