mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
fix(modal): backdrop and box shadows no longer stack when opening multiple modals (#20801)
fixes #20800
This commit is contained in:
committed by
Liam DeBeasi
parent
12932dd202
commit
253cd96164
@ -4,7 +4,7 @@
|
||||
// iOS Modals
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
:host:first-of-type {
|
||||
--backdrop-opacity: var(--ion-backdrop-opacity, 0.4);
|
||||
}
|
||||
|
||||
|
||||
@ -5,13 +5,16 @@
|
||||
// Material Design Modals
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
:host:first-of-type {
|
||||
--backdrop-opacity: var(--ion-backdrop-opacity, 0.32);
|
||||
}
|
||||
|
||||
@media only screen and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-small) {
|
||||
:host {
|
||||
--border-radius: 2px;
|
||||
}
|
||||
|
||||
:host:first-of-type {
|
||||
--box-shadow: #{$modal-inset-box-shadow};
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
--border-color: transparent;
|
||||
--background: #{$background-color};
|
||||
--box-shadow: none;
|
||||
--backdrop-opacity: 0;
|
||||
|
||||
@include position(0, 0, 0, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user