-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support Shadow DOM #828
Comments
I'm not very familiar with the Shadow DOM tbh and would be looking for community assistance in ensuring this project can support it across all components. If this is something you could help with, it'd be greatly appreciated! |
Seems we could expose an optional prop to the various components call |
This also led to downstream errors of svelte shadcn/ui huntabyte/shadcn-svelte#1604 |
I noticed that support for shadow dom was abandoned 14 hours ago, so bits-ui 1.0 will no longer consider supporting shadow dom, right? |
Note This is not that hard to implement. In my opinion, one of the possible solutions is to define a global context with the |
It's not a blocker for 1.0; it can be added after stability without breaking change. I'd still like to have it prior to 1.0. |
Yeah this is the idea. Have a |
However, the Sheet component still cannot work properly in the shadow DOM at present. After checking, I found that one of the errors was caused by not passing the |
After thinking on this a bit more, I believe once this lands: sveltejs/svelte#15000 we'll be able to get a reference to the node without needing to specify an At that point, the |
Describe the bug
The Select component does not open the options list when it mounted in shadow DOM.
bits-ui@next
latest
versionGitHub Pages
Reproduction
https://github.com/x0k/bits-ui-shadow-dom-select
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: