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
Right now the style tag allows the scoped attribute for a single component or it assumes it's global.
I'd love to see a singular scope attribute that lets me specify a group name. Any component specifying that scope group will bring in the css.
Perhaps even allow the scoped attribute at the end (ex. <style scope="boxes" scoped>). This would enable a component to absorb the group css but any css within its style tag is scoped just for that component.
I realize we can do this by importing a css file, but I feel like this could be a convenient feature as I have had need for it many times.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Right now the style tag allows the scoped attribute for a single component or it assumes it's global.
I'd love to see a singular scope attribute that lets me specify a group name. Any component specifying that scope group will bring in the css.
Perhaps even allow the scoped attribute at the end (ex. <style scope="boxes" scoped>). This would enable a component to absorb the group css but any css within its style tag is scoped just for that component.
I realize we can do this by importing a css file, but I feel like this could be a convenient feature as I have had need for it many times.
Beta Was this translation helpful? Give feedback.
All reactions