From 500ebb0687e5a49bfbb28c9991e1a1c3daff20af Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Tue, 13 Apr 2021 08:41:37 +0000 Subject: [PATCH] [FIX] web_editor: ensure editor's floating toolbar is visible in modals Bootstrap sets a z-index of 1050 for modals while the editor's floating toolbar has no set z-index and is therefore invisible in modals. This ensures the visibility of the toolbar in bootstrap modals. closes odoo/odoo#69160 X-original-commit: 9cd4eb6db072fd55d47240260e63fd5923b3bddb Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/scss/wysiwyg.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 0d8034dfea2..3f167f0a074 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -34,6 +34,7 @@ $o-we-zindex: $o-we-overlay-zindex + 1 !default; background-color: $o-we-bg; color: $o-we-color; font-family: $o-we-font-family; + z-index: 1051; // Bootstrap sets .modal z-index at 1050. Ensure toolbar is visible in modals. &.noarrow::before { display: none;