From 5f6571a6fec60fee9688eeda2c97c9bb15cc2e3b Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Tue, 28 Jan 2020 11:25:56 +0000 Subject: [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/web/static/src/scss/modal.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/scss') 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 { -- cgit v1.2.3