Currently, my ASP.NET MVC website is styled using the Metronic Bootstrap template.
I am contemplating the idea of revamping this website by implementing the vanilla web components approach.
In a preliminary test, I created a web component without shadow DOM and noticed that it seamlessly adopted the Metronic style from its parent page.
However, upon enabling shadow DOM, the CSS inheritance ceased, causing my web component to no longer reflect the Metronic style.
Now faced with this dilemma, I am unsure about the best approach: Should I forego shadow DOM to maintain the design consistency at the expense of full encapsulation benefits provided by web components?
How do you suggest handling the integration of a comprehensive Bootstrap template like Metronic with web components? Is the effort worthwhile, or are there specific guidelines for navigating such a scenario?