2 ms·
There are ways to apply global styles to your components other than importing a global sheet. There's just not a standard way defined in the spec. Isolation by
by HumanOstrich 2y ago
There are ways to apply global styles to your components other than importing a global sheet. There's just not a standard way defined in the spec. Isolation by default is the correct path for them to take compared to the alternatives. That doesn't make it useless just because you don't know how to do it in a good way.
See https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM#applying_styles_inside_the_shadow_dom https://developer.mozilla.org/en-US/docs/Web/API/Web_compone...
- gedy 2y agoMy main point is that gets in the way, unlike most other web frameworks when building normal applications. It's a headwind that always comes up and hurts adoption imho.