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
I have searched for existing issues that already report this problem, without success.
Stencil Version
4.21.0
Current Behavior
When using scoped CSS, a child component will pick up any matching styles from parent components with a higher precedence than its own.
Expected Behavior
Styles defined using scoped CSS should be uniquely scoped to the component. Versions 4.20.0 and below do not seem to have the same behaviour with scoped CSS.
Prerequisites
Stencil Version
4.21.0
Current Behavior
When using scoped CSS, a child component will pick up any matching styles from parent components with a higher precedence than its own.
Expected Behavior
Styles defined using scoped CSS should be uniquely scoped to the component. Versions 4.20.0 and below do not seem to have the same behaviour with scoped CSS.
System Info
Steps to Reproduce
Create a component with a with a scoped CSS style:
Define a parent component with a matching CSS style that imports the first component:
In the example above, v4.20.0 renders two strings, one in red then one in green but v4.21.0 will render both strings in red.
Code Reproduction URL
https://github.com/OFurnell/stencil-scoped-style-issue
Additional Information
No response
The text was updated successfully, but these errors were encountered: