-
Notifications
You must be signed in to change notification settings - Fork 40
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
Material UI compatibility #12
Comments
Hi @BGligorijevic, ReactWebComponent.create(<App />, 'my-component', true); |
@BGligorijevic I have the exactly same issue, have you found solution ? |
@mnemanja it does not work unfortunately. |
In latest version, ReactWebComponent.create(, 'my-component', false) works for me, to switch off shadow dom. But that is not how we target. Seems we can inject styles in shadow dom somehow, working on that. |
Hello guys, Boris |
Found a solution, see here https://codesandbox.io/s/04j9lxymow it can help you inject styles indo shadow dom, but need to refactor react-web-component a little bit. |
@BGligorijevic, then you might as well close this ticket. |
Hello,
When using React Web Component I am unable to get Material UI to work with it.
No styles are recognized, and when I try using Dialog component, I get:
index.js:32 Uncaught TypeError: Cannot read property 'webComponentAttributeChanged' of undefined
at callLifeCycleHook (index.js:32)...
I guess it has something to do with Shadow DOM and CSS.
Is there any workaround for this?
The text was updated successfully, but these errors were encountered: