-
-
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
react-colorful not working if we use it with react-shadow #180
Comments
This is intended and a side-effect from how react-colorful/src/hooks/useStyleSheet.ts Lines 11 to 30 in a85e5b3
This just won't work with shadow DOM. |
CodeSandbox for the issue: |
I fixed it by injecting the styles as global styles and I got it from here: |
here is a sample of the code, I just embedded your HexColorPicker component under the root shadow
https://codesandbox.io/s/react-colorful-demo-forked-6vivtb?file=/src/App.js
The text was updated successfully, but these errors were encountered: