Skip to content

Conversation

@bsmiley1
Copy link
Contributor

@bsmiley1 bsmiley1 commented Dec 17, 2025

This PR attempts to expand Shadow DOM support by allowing portal components to be opened within a shadow root through the PortalProvider context api.

Pending PDF for a more detailed description of the changes:

✅ 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:

@bsmiley1 bsmiley1 changed the title Fix: dec release shadowdom support fix: add shadow dom support for portal provider (S2 v1.0.0, S1 v3.46.0) Dec 17, 2025
*/

import {CLEAR_FOCUS_EVENT, FOCUS_EVENT, focusWithoutScrolling, getActiveElement, isCtrlKeyPressed, isTabbable, mergeProps, scrollIntoView, scrollIntoViewport, useEvent, useRouter, useUpdateLayoutEffect} from '@react-aria/utils';
import {CLEAR_FOCUS_EVENT, FOCUS_EVENT, focusWithoutScrolling, getActiveElement, isCtrlKeyPressed, mergeProps, nodeContains, scrollIntoView, scrollIntoViewport, useEffectEvent, useEvent, useRouter, useUpdateLayoutEffect} from '@react-aria/utils';
Copy link
Member

Choose a reason for hiding this comment

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

looks like isTabbable was incorrectly removed

@snowystinger
Copy link
Member

Thanks for the PR, I know you said some more things are coming including a detailed description of the changes. Can you include any references to existing/prior work?
https://github.com/adobe/react-spectrum/pulls?q=is%3Apr+is%3Aopen+shadow
#8806 <- it'd be great to include tests from here as well

I'm starting to refresh myself on all of this work now that our release and docs are out. A bit unfortunate that it's also time for the holiday shutdown, but I am spending some time on this topic this week and a little bit of next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants