My project Hierarchy is as below:
Component_HomePage
|
|---> Component_Tool1
| |
| ---> Component_Inner_01
|
|---> Component_Tool2
|
---> Component_Inner_02
Obviously all Component are having different styling.
Though there are some CSS classes in Component_Inner_01 & Component_Inner_02 whose names are same but content is different.
For example:
Component_Inner_01.CSS having list-group-item class
.list-group-item{
padding: 0px;
}
And Component_Inner_02.CSS is also having list-group-item but content is diff.
.list-group-item{
padding: 10px;
}
So for the first time when i browse Component_Inner_01 list-group-item takes padding as 0px, which is perfect.
But when i view Component_Inner_01 page after viewing Component_Inner_02 page, list-group-item class of Component_Inner_01 is taking padding as 10px.
I figured out the issue was in Component_Inner_02
Component_Inner_02's decorator having metadata encapsulation which is set to ViewEncapsulation.None
But i don't know what making CSS classes conflict with each other when having encapsulation: ViewEncapsulation.None, Can anybody explain ?
emulatedvalue in the docs, so that you understand betternone(styles will not be limited to the component withnone)