Currently, I am utilizing Angular 15 in conjunction with @angular/material
. One of the features I have implemented is a standalone component that incorporates mat-dialog-title
, mat-dialog-content
, and mat-dialog-actions
. This particular component is designed to work alongside MatDialog
. However, upon rendering the component within the dialog, I've noticed that certain CSS variables sourced from the material library are undefined while others remain unaffected.
https://i.sstatic.net/PUi2o.png
I am perplexed as to why some variables are defined and others are not, leading to an awkward appearance in terms of styling. Could there be another module dependency that I need to import aside from just MatDialogModule
in the standalone component?
Initially, I assumed this wouldn't be an issue since the component stands on its own. However, it's worth mentioning that the component resides in a separate library project (where it was exported from).