From a4f0bdb4c3ceeeaf902d520e9aa72e04a6ec2302 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 8 Jun 2020 10:29:39 -0400 Subject: [PATCH] fix(modal): set card-style modal height using the --height css variable (#21453) --- core/src/components/modal/modal.ios.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/components/modal/modal.ios.scss b/core/src/components/modal/modal.ios.scss index dc83c5cfbe..0a4dc10c21 100644 --- a/core/src/components/modal/modal.ios.scss +++ b/core/src/components/modal/modal.ios.scss @@ -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); } }