We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using JavaScript to generate scoped CSS based on props passed to the component.
For example, inside of _components/flex-box.webc:
_components/flex-box.webc
<script webc:type="js" webc:is="style" webc:scoped> ` :host { display: flex; flex-direction: ${direction}; } ` </script>
The problem is when multiple instances of the same component are on the same page. Sharing the same CSS class, only the last styles apply.
For example, inside of index.webc:
index.webc
<flex-box @direction="row"></flex-box> <flex-box @direction="column"></flex-box>
flex-direction: column; would override flex-direction: row;, assigning the same property to both elements.
flex-direction: column;
flex-direction: row;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using JavaScript to generate scoped CSS based on props passed to the component.
For example, inside of
_components/flex-box.webc
:The problem is when multiple instances of the same component are on the same page.
Sharing the same CSS class, only the last styles apply.
For example, inside of
index.webc
:flex-direction: column;
would overrideflex-direction: row;
, assigning the same property to both elements.The text was updated successfully, but these errors were encountered: