support feature linke StyleSheetManager
in styled-components
#1410
Labels
feature: proposal 💬
New feature proposal that needs to be discussed
needs: triage 🏷
Issue needs to be checked and prioritized
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
we could see styled-components generate style beside dom, so styles could take effect
Possible implementations
Related Issues
#496
The text was updated successfully, but these errors were encountered: