File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/material-experimental/mdc-dialog Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2929
3030 // MDC sets `min-height`, `max-height`, `min-width` and `max-height` We can't rely on
3131 // this for the dialog content scrolling (as explained above), and since we allow for
32- // custom positioning through overlay configuration, we remove the rectangle restrictions
33- // and scale based on the CDK overlay container.
32+ // custom positioning through overlay configuration, we remove the rectangle
33+ // restrictions and scale based on the CDK overlay container.
3434 & , .mdc-dialog__container , .mdc-dialog__surface {
3535 max-height : inherit ;
3636 min-height : inherit ;
4444 // components can be immediate children of the surface and make this a noop. If only
4545 // templates or DOM elements are projected, the flex display could cause unexpected
4646 // 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.
4750 .mdc-dialog__surface {
4851 display : block ;
52+ width : 100% ;
53+ height : 100% ;
4954 }
5055 }
5156}
You can’t perform that action at this time.
0 commit comments