Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Each component instance creates it's own stylesheet when using string stylesheets #52

Closed
cristinecula opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cristinecula
Copy link
Contributor

cristinecula commented Dec 4, 2024

We should create the sheets only once and re-use them.

if (styleSheets) shadowRoot.adoptedStyleSheets = sheets(styleSheets);

@cristinecula cristinecula changed the title Each component instance has it's own stylesheet When using string stylesheets Each component instance creates it's own stylesheet when using string stylesheets Dec 4, 2024
@cristinecula cristinecula added the bug Something isn't working label Dec 4, 2024
@megheaiulian
Copy link
Contributor

fixed by #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants