File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 46
46
47
47
// When a component is passed into the dialog, the host element interrupts
48
48
// the `display:flex` from affecting the dialog title, content, and
49
- // actions. To fix this, we make the component host `display: contents ` by
49
+ // actions. To fix this, we make the component host `display: flex ` by
50
50
// marking it's panel with the `mat-mdc-dialog-component-panel` class.
51
51
//
52
52
// Note that this problem does not exist when a template ref is used since
53
53
// the title, contents, and actions are then nested directly under the
54
54
// dialog surface.
55
55
.mat-mdc-dialog-component-panel .mat-mdc-dialog-surface > * {
56
- display : contents ;
56
+ display : flex ;
57
+ flex-direction : column ;
58
+ width : 100% ;
59
+ height : 100% ;
57
60
}
58
61
}
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
164
164
165
165
// When a component is passed into the dialog, the host element interrupts
166
166
// the `display:flex` from affecting the dialog title, content, and
167
- // actions. To fix this, we make the component host `display: contents ` by
167
+ // actions. To fix this, we make the component host `display: flex ` by
168
168
// marking it's panel with the `mat-mdc-dialog-component-panel` class.
169
169
//
170
170
// Note that this problem does not exist when a template ref is used since
You can’t perform that action at this time.
0 commit comments