Issue details:
1. component hierarchy:
2. sub_component_1 style class file name will be sub_component_1.css
3. style classes will be loaded as given below:
4. when component div tag try to utilize the above style, its not applying.
Work around:
wrap your component with div tag having a style class as "c + COMP_Name", given an example below:
1. component hierarchy:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--App-1 | |
'-->component-1 | |
'-->sub_component_1 | |
'-->sub_component_2 | |
'-->component-2 | |
'-->sub_component_3 | |
'-->sub_component_4 |
3. style classes will be loaded as given below:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.csub_component_1 .custom-class { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="custom-class"> | |
<!-- UI Elements --> | |
</div> |
Work around:
wrap your component with div tag having a style class as "c + COMP_Name", given an example below:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="csub_component_1"> | |
<div class="custom-class"> | |
<!-- UI elements --> | |
</div> | |
</div> |
Comments
Post a Comment