File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
175
175
// the title, contents, and actions are then nested directly under the
176
176
// dialog surface.
177
177
if ( ! ( componentOrTemplateRef instanceof TemplateRef ) ) {
178
- this . _appendPanelClass ( config ) ;
178
+ this . _appendPanelClass ( config , 'mat-mdc-dialog-component-panel' ) ;
179
179
}
180
180
181
181
const cdkRef = this . _dialog . open < R , D , T > ( componentOrTemplateRef , {
@@ -266,13 +266,14 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
266
266
}
267
267
}
268
268
269
- private _appendPanelClass ( config : MatDialogConfig ) {
269
+ /** Appends the given class name to the panel via the dialog config. */
270
+ private _appendPanelClass ( config : MatDialogConfig , className : string ) {
270
271
if ( Array . isArray ( config . panelClass ) ) {
271
- config . panelClass . push ( 'mat-mdc-dialog-component-panel' ) ;
272
+ config . panelClass . push ( className ) ;
272
273
} else if ( typeof config . panelClass === 'string' ) {
273
- config . panelClass = [ config . panelClass , 'mat-mdc-dialog-component-panel' ] ;
274
+ config . panelClass = [ config . panelClass , className ] ;
274
275
} else {
275
- config . panelClass = 'mat-mdc-dialog-component-panel' ;
276
+ config . panelClass = className ;
276
277
}
277
278
}
278
279
}
You can’t perform that action at this time.
0 commit comments