mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(modal): allow for custom dialog implementations (#25630)
resolves #24080
This commit is contained in:
@ -162,6 +162,22 @@ html.ios ion-modal.modal-card .ion-page {
|
||||
z-index: $z-index-page-container;
|
||||
}
|
||||
|
||||
/**
|
||||
* When making custom dialogs, using
|
||||
* ion-content is not required. As a result,
|
||||
* some developers may wish to have dialogs
|
||||
* that are automatically sized by the browser.
|
||||
* These changes allow certain dimension values
|
||||
* such as fit-content to work correctly.
|
||||
*/
|
||||
ion-modal .ion-page {
|
||||
position: relative;
|
||||
|
||||
contain: layout style;
|
||||
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.split-pane-visible > .ion-page.split-pane-main {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user