I am trying to change the color of the angular material dialog using css var (), but instead of the color I need, the background becomes transparent.
Css style:
.custom-dialog > mat-dialog-container {
background: var(--background);
}
Open dialog function:
openDialogForCreateDirectory(): void {
this.dialog.open(CreateDirectoryComponent, {
width: '400px',
panelClass: 'custom-dialog'
});
}