Doc says:
The shadow-piercing descendant combinator is deprecated and support is being removed from major browsers and tools. As such we plan to drop
One alternative that can work is to include the css styles in your global styles.scss file*.
For example, say you want to add a style to the your.component.scss Or instead, you can change: styles.scss: *: This is any file that is added to the styles collection in your , you could use ::ng-deep likewise:
::ng-deep mat-form-field.mat-form-field div.mat-form-field-flex {
padding: 0 0 0 .75em;
}
mat-form-field.mat-form-field div.mat-form-field-flex {
padding: 0 0 0 .75em;
}
angular.json file."styles": [
"src/theme.scss",
"src/styles.scss"
],