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

support feature linke StyleSheetManager in styled-components #1410

Open
yzqdev opened this issue May 4, 2024 · 0 comments
Open

support feature linke StyleSheetManager in styled-components #1410

yzqdev opened this issue May 4, 2024 · 0 comments
Labels
feature: proposal 💬 New feature proposal that needs to be discussed needs: triage 🏷 Issue needs to be checked and prioritized

Comments

@yzqdev
Copy link

yzqdev commented May 4, 2024

repo https://github.com/yzqbugs/linaria-feat

Describe the feature

so we could provide a StyleSheetManager to set where to put our style in, like StyleSheetManager

Motivation

all styles are generated in global scope. It's not usable for shadowDom,if we could provide a styleSheetManager to tell linaria to inject css to shadowdom element,all styles will take effect

below is my code, showing use styleSheetManager in shadowDom

https://github.com/yzqbugs/linaria-feat/blob/364eaadf133818ad59030fd567669a19850dbc2b/src/main.tsx#L1-L59

image

we could see styled-components generate style beside dom, so styles could take effect

Possible implementations

Related Issues

#496

@yzqdev yzqdev added the feature: proposal 💬 New feature proposal that needs to be discussed label May 4, 2024
@github-actions github-actions bot added the needs: triage 🏷 Issue needs to be checked and prioritized label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: proposal 💬 New feature proposal that needs to be discussed needs: triage 🏷 Issue needs to be checked and prioritized
Projects
None yet
Development

No branches or pull requests

1 participant