mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(modal): swipeable modal styles only apply to ios (#20571)
fixes #20569
This commit is contained in:
@ -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={{
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user