File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 38
38
max-width : inherit ;
39
39
}
40
40
41
- // MDC by default sets the `surface` to `display: flex`. MDC does this in order to
42
- // be able to make the content scrollable while locking the title and actions. This
43
- // does not work in our dialog anyway because due to the content projection, arbitrary
44
- // components can be immediate children of the surface and make this a noop. If only
45
- // templates or DOM elements are projected, the flex display could cause unexpected
46
- // alignment issues as explained in our coding standards (see `CODING_STANDARDS.md`).
47
- // Additionally, the surface by default should expand based on the parent overlay
48
- // boundaries (so that boundaries for the overlay config are respected). The surface
49
- // by default would only expand based on its content.
50
41
.mdc-dialog__surface {
51
- display : block ;
52
42
width : 100% ;
53
43
height : 100% ;
54
44
}
45
+
46
+ // MDC sets the `surface` to `display: flex`. MDC does this in order to be able to make the
47
+ // content scrollable while locking the title and actions. This only works in our dialog if we
48
+ // set the children of the `surface` to `display: contents`. This is because, due to content
49
+ // projection, arbitrary components can be immediate children of the surface and make this a
50
+ // noop.
51
+ .mat-mdc-dialog-surface > * {
52
+ display : contents ;
53
+ }
55
54
}
56
55
}
You can’t perform that action at this time.
0 commit comments