Skip to content

Commit 07101a6

Browse files
committed
fixup! fix(material/dialog): css structure change
1 parent bf80996 commit 07101a6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/material/dialog/_mdc-dialog-structure-overrides.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@
4646

4747
// When a component is passed into the dialog, the host element interrupts
4848
// 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
5050
// marking it's panel with the `mat-mdc-dialog-component-panel` class.
5151
//
5252
// Note that this problem does not exist when a template ref is used since
5353
// the title, contents, and actions are then nested directly under the
5454
// dialog surface.
5555
.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%;
5760
}
5861
}

src/material/dialog/dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export abstract class _MatDialogBase<C extends _MatDialogContainerBase> implemen
164164

165165
// When a component is passed into the dialog, the host element interrupts
166166
// 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
168168
// marking it's panel with the `mat-mdc-dialog-component-panel` class.
169169
//
170170
// Note that this problem does not exist when a template ref is used since

0 commit comments

Comments
 (0)