bug: intermediate parents' scope ids are not reflected to the children elements #5774
Closed
3 tasks done
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
4.18.1
Current Behavior
as you already know #5702 and #5749 issue fixes are already merged & shipped with v4.18.1.
One last time (I hope) we need to update this logic. I found out we don't add the intermediate components' scope ids to the children elements. Think about having a component structure like below:
given that component structure I have these style files:
and as a result of compilation I want to have all of those styles for the
my-list-item
component which is used within the timepicker:the problem is only the root component's scope id (
sc-my-timepicker
) is added to the child component. But all the parent components' scope ids must be added. Otherwise, when you use it in another parent, the styles get broken since it only receives the most parent components scope id.P.S: I reused the existing reproduction repo by updating it. Here you can find the updates.
Expected Behavior
System Info
Steps to Reproduce
Reproduction repo: https://github.com/yigityuce/stencil-v4-sc-nested-css-scope-id
Code Reproduction URL
https://github.com/yigityuce/stencil-v4-sc-nested-css-scope-id
Additional Information
No response
The text was updated successfully, but these errors were encountered: