File tree Expand file tree Collapse file tree 6 files changed +6
-16
lines changed Expand file tree Collapse file tree 6 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class DialogDemo {
2828 disableClose : false ,
2929 panelClass : 'custom-overlay-pane-class' ,
3030 hasBackdrop : true ,
31- backdropClass : defaultDialogConfig . backdropClass ,
31+ backdropClass : '' ,
3232 width : '' ,
3333 height : '' ,
3434 minWidth : '' ,
Original file line number Diff line number Diff line change 55@mixin mat-bottom-sheet-theme ($theme ) {
66 $background : map-get ($theme , background );
77 $foreground : map-get ($theme , foreground );
8- $backdrop-color : invert (mat-color ($background , card , 0.288 ));
98
109 .mat-bottom-sheet-container {
1110 @include _mat-theme-elevation (16 , $theme );
1211 background : mat-color ($background , dialog );
1312 color : mat-color ($foreground , text );
1413 }
15-
16- .mat-bottom-sheet-backdrop {
17- background : $backdrop-color ;
18- }
1914}
2015
2116@mixin mat-bottom-sheet-typography ($config ) {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export class MatBottomSheetConfig<D = any> {
3232 hasBackdrop ?: boolean = true ;
3333
3434 /** Custom class for the backdrop. */
35- backdropClass ?: string = 'mat-bottom-sheet-backdrop' ;
35+ backdropClass ?: string ;
3636
3737 /** Whether the user can use escape or clicking outside to close the bottom sheet. */
3838 disableClose ?: boolean = false ;
Original file line number Diff line number Diff line change 77@mixin mat-dialog-theme ($theme ) {
88 $background : map-get ($theme , background );
99 $foreground : map-get ($theme , foreground );
10- $backdrop-color : invert (mat-color ($background , card , 0.288 ));
1110
1211 .mat-dialog-container {
1312 @include _mat-theme-elevation (24 , $theme );
1413 background : mat-color ($background , dialog );
1514 color : mat-color ($foreground , text );
1615 }
17-
18- .mat-dialog-backdrop {
19- background : $backdrop-color ;
20- }
2116}
2217
2318@mixin mat-dialog-typography ($config ) {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export class MatDialogConfig<D = any> {
5454 hasBackdrop ?: boolean = true ;
5555
5656 /** Custom class for the backdrop, */
57- backdropClass ?: string = 'mat-dialog-backdrop ' ;
57+ backdropClass ?: string = '' ;
5858
5959 /** Whether the user can use escape or clicking on the backdrop to close the modal. */
6060 disableClose ?: boolean = false ;
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ export class MatDialog implements OnDestroy {
189189 * @returns The overlay configuration.
190190 */
191191 private _getOverlayConfig ( dialogConfig : MatDialogConfig ) : OverlayConfig {
192- const overlayConfig = new OverlayConfig ( {
192+ const state = new OverlayConfig ( {
193193 positionStrategy : this . _overlay . position ( ) . global ( ) ,
194194 scrollStrategy : dialogConfig . scrollStrategy || this . _scrollStrategy ( ) ,
195195 panelClass : dialogConfig . panelClass ,
@@ -203,10 +203,10 @@ export class MatDialog implements OnDestroy {
203203 } ) ;
204204
205205 if ( dialogConfig . backdropClass ) {
206- overlayConfig . backdropClass = dialogConfig . backdropClass ;
206+ state . backdropClass = dialogConfig . backdropClass ;
207207 }
208208
209- return overlayConfig ;
209+ return state ;
210210 }
211211
212212 /**
You can’t perform that action at this time.
0 commit comments