#bob.barkeer-elements-shadowdom
1 messages · Page 1 of 1 (latest)
hey there, you're using React @silent relic ?
or some other framework that works similarly?
using angular with viewEncapsulation.shadowDOM, we're using microfrontends so had to do this to prevent parent styles from bleeding into the component
Gotcha, so we don't have a library to manage this, but you need to manage the persistent state and available of the mounted element
There are some community angular library for this, but I'm not sure whether what you're doing is conventional or not for Angular, since it's been a few years since I used it extensively.
I can't speak to this community-written module itself, but the author discusses making this work via a shadow dom here: https://dev.to/bennypowers/any-framework-one-stripe-integration-1fo2
Even if the library is out of date, the source might reveal techniques that help you
To be explicit, that is not Stripe code and we do not recommend using it, but you can review the source to see if it helps you.
yeah we found that lib that was one thing i was going to dive into, didn't know if there was any stripe sponsored way of doing it though
i also dont have experience with the slot element https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot but i think we could probably get that to work somehow. or maybe thats what that library is using i havent checked yet