You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In stencil, css is used as a string inside each component bundle. For css that gets reused across components, this css string is repeated in each component.
Prequisites
Describe the Feature Request
Hi Team,
Add support for shadowDom.adoptedStylesheets
https://wicg.github.io/construct-stylesheets/
const shadowRoot = this.attachShadow({ mode: "open" });
shadowRoot.adoptedStyleSheets = [myElementSheet];
This gives an option to avoid duplicating css .
Describe the Use Case
In stencil, css is used as a string inside each component bundle. For css that gets reused across components, this css string is repeated in each component.
Using the https://wicg.github.io/construct-stylesheets/ approach , we can avoid duplicating the css if multiple components reuse some css.
Describe Preferred Solution
No response
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: