mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(modal): account for safe area on devices with a notch (#20072)
* fix card modal on notch phones * only apply safe area for card modal * fix styles, fix gesture race condition * a few more tweaks
This commit is contained in:

committed by
Liam DeBeasi

parent
9d1fe2e14f
commit
1cabb53650
@ -30,6 +30,14 @@ body.backdrop-no-scroll {
|
||||
// --overflow: hidden;
|
||||
// }
|
||||
|
||||
// Modal - Card Style
|
||||
// --------------------------------------------------
|
||||
// The card style does not reach all the way to
|
||||
// the top of the screen, so there does not need
|
||||
// to be any safe area padding added
|
||||
ion-modal.modal-card .ion-page > ion-header > ion-toolbar:first-child {
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
// Ionic Colors
|
||||
// --------------------------------------------------
|
||||
|
Reference in New Issue
Block a user