Open
Description
I have a few components that are similar and I'd like to share styles between rather than copying & pasting the styles into each component. So I put the shared styles into a .css
file and imported them into each component via sf('path/to/styles.css')
. Fortunately sheetify seems to know it's the same file so it uses the same class name for both components. But it still puts the contents of the .css
file into the <head><style>
tag twice:
Is that expected behaviour? Is there a better way to accomplish what I'm trying to do? The only other thing I can think of is to put the css on the parent element, but that feels like unnecessary coupling. Or use insert-css
to just add css like olden times.
Metadata
Metadata
Assignees
Labels
No labels