Skip to content

Commit

Permalink
fixup! fix(material/dialog): css structure change
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnermaciel committed Aug 14, 2023
1 parent 6f59dc2 commit 47bd02e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/material/dialog/_mdc-dialog-structure-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,13 @@

// When a component is passed into the dialog, the host element interrupts
// the `display:flex` from affecting the dialog title, content, and
// actions. To fix this, we make the component host `display: flex` by
// actions. To fix this, we make the component host `display: contents` by
// marking its host with the `mat-mdc-dialog-component-host` class.
//
// Note that this problem does not exist when a template ref is used since
// the title, contents, and actions are then nested directly under the
// dialog surface.
.mat-mdc-dialog-component-host {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
display: contents;
}
}
2 changes: 1 addition & 1 deletion src/material/dialog/dialog-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class MatDialogContainer extends CdkDialogContainer<MatDialogConfig> impl
override attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T> {
// When a component is passed into the dialog, the host element interrupts
// the `display:flex` from affecting the dialog title, content, and
// actions. To fix this, we make the component host `display: flex` by
// actions. To fix this, we make the component host `display: contents` by
// marking its host with the `mat-mdc-dialog-component-host` class.
//
// Note that this problem does not exist when a template ref is used since
Expand Down

0 comments on commit 47bd02e

Please sign in to comment.