Let's say we had some CSS code for something like an animated CSS loader that we want to use across all our web components which make use of the Shadow DOM. How do we re-use this CSS code if we are unable to pierce the Shadow DOM like it was possible with ::shadow
and /deep/
?
We can't even add a <link />
within the shadow DOM so currently I am force to duplicate the code via multiple <style>
tags.
I would really like to know what the suggested best practices are for this type of use case.
Thank you.