From 5f6571a6fec60fee9688eeda2c97c9bb15cc2e3b Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Tue, 28 Jan 2020 11:25:56 +0000 Subject: [PATCH] [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) --- addons/mail/static/src/xml/thread.xml | 2 +- addons/web/static/src/js/core/owl_dialog.js | 22 +++--- addons/web/static/src/scss/modal.scss | 4 +- .../web/static/tests/core/owl_dialog_tests.js | 71 +++++++++++++++++-- 4 files changed, 79 insertions(+), 20 deletions(-) diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index 9384f5a0141..b32b8afa1af 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -87,7 +87,7 @@ @param {mail.DocumentViewer} widget --> -