You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 馃槸
We're trying to add the Material UI v5 Autocomplete component to our existing LitElement (Web Component-based app).
We're using with JSS set to use a custom insertionPoint - our element's shadowRoot. This causes the styles to be properly inserted inside of ShadowDOM, but the autocomplete component also contains some dom elements that seem to be appended to the document's body (outside of our shadowRoot).
Because of this, half of the component is styled when we inject our styles into our shadowRoot, but the other half of the component (the dropdown menu) is not styled.
Expected Behavior 馃
It'd be nice if there was a clear way to get styles for this component to work inside of a shadowRoot. If the entire element was inside of the shadowRoot (where our React mount point is), then the styles would work.
Alternatively, if there was a way for us to apply the styles for the autocomplete component both globally and within our shadowRoot, then the component would also be styled. But as is, there seems to be no way to get this component properly styled when it's inside of a shadowRoot.
Steps to Reproduce 馃暪
Steps:
Create a Web Component that's rendered somewhere on a page.
Mount React into the shadowRoot of that component.
Render Material UI's in that React mountPoint anywhere.
Wrap in a that has jss set to use a custom insertionPoint of the Web Component's shadowRoot.
Context 馃敠
I'm trying to embed Material UI components inside of an existing Web Components-based app, and this issue makes using the autocomplete component infeasible.
See #17473. It seems that you don't need the isolation in your case. I would recommend staying away from shadow DOM as much as you can. If you really need to, you can customize the container of the portaled element, or even disable the portal
[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 馃槸
We're trying to add the Material UI v5 Autocomplete component to our existing LitElement (Web Component-based app).
We're using with JSS set to use a custom insertionPoint - our element's shadowRoot. This causes the styles to be properly inserted inside of ShadowDOM, but the autocomplete component also contains some dom elements that seem to be appended to the document's body (outside of our shadowRoot).
Because of this, half of the component is styled when we inject our styles into our shadowRoot, but the other half of the component (the dropdown menu) is not styled.
Expected Behavior 馃
It'd be nice if there was a clear way to get styles for this component to work inside of a shadowRoot. If the entire element was inside of the shadowRoot (where our React mount point is), then the styles would work.
Alternatively, if there was a way for us to apply the styles for the autocomplete component both globally and within our shadowRoot, then the component would also be styled. But as is, there seems to be no way to get this component properly styled when it's inside of a shadowRoot.
Steps to Reproduce 馃暪
Steps:
Context 馃敠
I'm trying to embed Material UI components inside of an existing Web Components-based app, and this issue makes using the autocomplete component infeasible.
Your Environment 馃寧
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: