View encapsulation is emulated when importing a file inside ::ng-deep
#20821
Labels
area: core
Issues related to the framework runtime
core: CSS encapsulation
freq1: low
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
type: bug/fix
Milestone
I'm submitting a...
Current behavior
The following .scss file with the default
Emulated
view encapsulation......results in
[_ngcontent-${id}]
attributes applied to its content.Expected behavior
They should not be added because it's inside
::ng-deep
.Minimal reproduction of the problem with instructions
I think the example above is pretty straightforward, but I can create a repro repo if requested.
What is the motivation / use case for changing the behavior?
Being able to include a third-party css file without view encapsulation being applied to it.
Environment
The text was updated successfully, but these errors were encountered: