-
I am building a webchat widget powered by Twilio conversation. A major challenge I face is preventing Twilio Paste stying from clashing with the underlying website styles. I have tried 2 potential solutions: Shadow DOM and iFrames but these methods have failed. Is there a way to access Twilio paste style manager's |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hi @iyinolu, Some more information (or even a codesandbox) would be very helpful. What kind of style clashes are you dealing with? Also, have you considered using our CustomizationProvider? It should allow you to override any styles on our components. |
Beta Was this translation helpful? Give feedback.
-
Thanks! much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi @SiTaggart , thanks for new feature that enables ShadowDOM 🎉 I'm currently facing some issues when I use it to encapsulate I forked the CodeSandbox that you provided to include UserDialog: https://codesandbox.io/p/sandbox/paste-with-shadowdom-forked-4zphrz?file=%2Fsrc%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
Hi @iyinolu
This feature is now out in Paste Core
v19.1.0
. It requires you to do a little work to wrap the app, but I've created an example in CodeSandbox to show how it can be done usingreact-shadow
https://codesandbox.io/p/sandbox/paste-with-shadowdom-vvlqer?file=%2Fsrc%2FApp.tsx