fix(modal): swipeable modal styles only apply to ios (#20571)

fixes #20569
This commit is contained in:
Liam DeBeasi
2020-02-24 11:14:43 -05:00
committed by GitHub
parent ad6fac83cb
commit 3a2d82814b
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ export class Modal implements ComponentInterface, OverlayInterface {
aria-modal="true" aria-modal="true"
class={{ class={{
[mode]: true, [mode]: true,
[`modal-card`]: this.presentingElement !== undefined, [`modal-card`]: this.presentingElement !== undefined && mode === 'ios',
...getClassMap(this.cssClass) ...getClassMap(this.cssClass)
}} }}
style={{ style={{

View File

@ -35,7 +35,7 @@ body.backdrop-no-scroll {
// The card style does not reach all the way to // The card style does not reach all the way to
// the top of the screen, so there does not need // the top of the screen, so there does not need
// to be any safe area padding added // to be any safe area padding added
ion-modal.modal-card .ion-page > ion-header > ion-toolbar:first-child { html.ios ion-modal.modal-card .ion-page > ion-header > ion-toolbar:first-child {
padding-top: 0px; padding-top: 0px;
} }