get rid of white space around angular material modal dialog

Solutions on MaxInterview for get rid of white space around angular material modal dialog by the best coders in the world

showing results for - "get rid of white space around angular material modal dialog"
Luis
14 Apr 2018
1import {ViewEncapsulation} from '@angular/core';
2    
3@Component({
4  .....,
5  encapsulation: ViewEncapsulation.None 
6})
7
Gabriela
11 Jan 2019
1.mat-dialog-container {
2    padding: 0px !important;
3}
4
Raphael
21 Nov 2016
1.custom-dialog-container .mat-dialog-container {
2    /* add your styles */
3}
4
Dario
04 Jul 2016
1this.dialog.open(MyDialogComponent, { panelClass: 'custom-dialog-container' })
2