Skip to content

AnchoredOverlay: preserve custom popover IDs - #8837

Draft
TylerJDev wants to merge 1 commit into
mainfrom
tylerjdev/selectpanel-stack-overlay-id
Draft

TylerJDev wants to merge 1 commit into
mainfrom
tylerjdev/selectpanel-stack-overlay-id

Conversation

@TylerJDev

Copy link
Copy Markdown
Member

Independent fix extracted from #7287. This can be reviewed and merged without the composable SelectPanel stack.

Changelog

New

None.

Changed

  • Preserve a consumer-provided overlay ID when rendering a native popover, and point the anchor's invoker at that same ID.
  • Continue generating an ID when the consumer does not provide one.

Removed

None.

Rollout strategy

  • No changes needed in github/github-ui

Testing & Reviewing

Enable primer_react_css_anchor_positioning and inspect the Custom Popover Id story. The open popover keeps consumer.popover as its ID, the anchor targets that ID, and closing removes the popover. Existing generated-ID behavior and non-popover overlays are unchanged. The broader close-button rendering and ActionList changes from #7287 are intentionally not included.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8f2c518

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

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

@github-actions github-actions Bot added staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

This branch was successfully deployed

2 active deployments
storybook-preview-8837 — 8f2c518a Deployed Nov 24, 2026 by github-actions[bot]
github-pages — 8f2c518a Deployed Nov 24, 2026 by TylerJDev via deploy-preview #34523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant