Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

style mat-dialog-container

// Overlay-based components have a panelClass property (or similar) 
// that can be used to target the overlay pane.

this.dialog.open(DialogExampleComponent, { 
	panelClass: 'dialog-container-custom' 
});

// then style it from there

.dialog-container-custom .mat-dialog-container {
	padding: 0;
	background: grey;
}
 
PREVIOUS NEXT
Tagged: #style
ADD COMMENT
Topic
Name
9+7 =