summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/modal.scss
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-01-28 11:25:56 +0000
committerJulien Mougenot <jum@odoo.com>2020-01-28 11:35:14 +0000
commit5f6571a6fec60fee9688eeda2c97c9bb15cc2e3b (patch)
tree983710550d99d2415ff63afe75f7e8d5c2eb9ab0 /addons/web/static/src/scss/modal.scss
parenta61332e251d8896fc8cc0959b080757d584dcb79 (diff)
[FIX] web,mail: only apply modal activity for Dialog modals
Before this commit, the CSS rule handling the "activity" of the modals (their z-index compared to the one of their backdrop) was global and would interfere with front-end or custom modals which do not use the static Dialog methods giving them the "active" class. Now, the rule has been inverted: the z-index of a modal is only changed when it is given an "inactive" class, thus only impacting the modals instantiated via Dialog or Owl Dialog classes. closes odoo/odoo#44067 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/scss/modal.scss')
-rw-r--r--addons/web/static/src/scss/modal.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss
index d82ddec6213..54bbbc2a696 100644
--- a/addons/web/static/src/scss/modal.scss
+++ b/addons/web/static/src/scss/modal.scss
@@ -106,8 +106,8 @@
}
}
-.modal:not(.o_active_modal) {
- z-index: 1030;
+.modal.o_inactive_modal {
+ z-index: $zindex-modal-backdrop - 1;
}
.o_dialog {