Skip to content

Commit

Permalink
fix(modal): set card-style modal height using the --height css variab…
Browse files Browse the repository at this point in the history
…le (#21453)
  • Loading branch information
liamdebeasi authored Jun 8, 2020
1 parent 187917c commit a4f0bdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/components/modal/modal.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

@media screen and (max-width: 767px) {
@supports (width: max(0px, 1px)) {
:host(.modal-card) .modal-wrapper {
height: calc(100% - max(30px, var(--ion-safe-area-top)) - 10px);
:host(.modal-card) {
--height: calc(100% - max(30px, var(--ion-safe-area-top)) - 10px);
}
}

@supports not (width: max(0px, 1px)) {
:host(.modal-card) .modal-wrapper {
height: calc(100% - 40px);
:host(.modal-card) {
--height: calc(100% - 40px);
}
}

Expand Down

0 comments on commit a4f0bdb

Please sign in to comment.