Skip to content

fix(react-aria-components): pass overlay id to PopoverContext in Dialogue#9807

Open
albertdugba wants to merge 1 commit into
adobe:mainfrom
albertdugba:fix/popover-aria-controls-id
Open

fix(react-aria-components): pass overlay id to PopoverContext in Dialogue#9807
albertdugba wants to merge 1 commit into
adobe:mainfrom
albertdugba:fix/popover-aria-controls-id

Conversation

@albertdugba
Copy link
Copy Markdown
Contributor

This fixes Issue #9800

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

[PopoverContext, {
trigger: 'DialogTrigger',
triggerRef: buttonRef,
id: overlayProps.id,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Now we are sending the id to both DialogContext and PopoverContext. This is causing the test failures. We could potentially set id to undefined on DialogContext and only send it to PopoverContext, but not sure.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@devongovett Pls I moved the id to PopoverContext only and set it to undefined on DialogContext and also updated related the dialogue test

@github-actions github-actions Bot added the RAC label Apr 13, 2026
@albertdugba albertdugba force-pushed the fix/popover-aria-controls-id branch from 0c545b0 to a8d8e43 Compare April 13, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants