modal: breakout clean
This commit is contained in:
parent
f13bffa1f2
commit
0daf84a327
2 changed files with 1 additions and 3 deletions
|
|
@ -178,9 +178,6 @@ class Modal extends Panel {
|
|||
|
||||
while (parent && parent.props && !parent.getProp('type').match(/modal|tab|root/)) {
|
||||
|
||||
// stacking
|
||||
parent.container.style.zIndex = this.value ? 'initial' : ''
|
||||
|
||||
parent.modalBreakout += (this.value ? 1 : -1)
|
||||
if (parent.modalBreakout > 0) parent.container.classList.add('modal-breakout')
|
||||
else if (parent.modalBreakout === 0) parent.container.classList.remove('modal-breakout')
|
||||
|
|
|
|||
|
|
@ -485,6 +485,7 @@
|
|||
}
|
||||
|
||||
.modal-breakout {
|
||||
z-index: initial!important;
|
||||
contain: size!important;
|
||||
@supports not (contain: strict) {
|
||||
transform: none!important; // cancel new stacking context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue