I have many different <mat-dialog>
elements in my code. I wanted to use ViewEncapsulation.None
so I could customize the defaults styles given by angular material to <mat-tab>
and <mat-dialog-container>
. When i first open a dialog, the styles are as they should be, but if I open a different dialog, all the styles of the begin to combine with each other.
I would like to understand why is this happening, and what are my options. (i prefer to avoid using ::ng-deep
By using ViewEncapsulation.None you are moving all the styles to top level so it will start apply to all elements in the DOM. So if you want customize it there some options available