From 3eb5b3410c6d7bfc625385a0f7464a35e538bfd2 Mon Sep 17 00:00:00 2001 From: "Mehdi Outagant (MOU)" Date: Mon, 15 Jan 2024 17:43:26 +0100 Subject: [PATCH] [FIX] web_editor: fix invisible background position actions in grid mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce: - Go to website (“Edit” mode) > Add a “Big Boxes” block. - Switch to “Grid” mode > Select the last column n (while n > 1) and set a background image on it. - Try to change the background position > You cannot save or cancel the changes since the option buttons (“Apply” & “Discard”) are invisible. This is simply because the grid element was cloned on the background container (`.o_overlay_background`) with its grid `z-index` style (with `z-index` === n) which automatically hides the buttons. The goal of this commit is to fix this behaviour by simply forcing the `z-index` of the background element to 0. task-3648466 closes odoo/odoo#150351 X-original-commit: 7dbb25dfeae25f27e10d4052db98c5f9d93699ff Signed-off-by: Benjamin Vray (bvr) --- addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 3c0dd6afff1..6f7375e6579 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -2522,6 +2522,7 @@ we-select.o_we_border_preview_aligned_select { transform: none !important; max-width: unset !important; max-height: unset !important; + z-index: 0 !important; } }