summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-11-20 09:26:13 +0000
committerSamuel Degueldre <sad@odoo.com>2020-11-20 09:33:16 +0000
commit26abfd452dac2a778e4e2ba4c1c26a0896e82565 (patch)
treeaaee8c587f4fe388efd92e0428909100d01429d3 /addons
parent24dff0b021497ceb7a7af62cb82797e00d487639 (diff)
[FIX] web_editor: fix shape transparency colorpicker appearing on parent
Previously, when adding a shape to a child element of a snippet, the colorpicker to configure the shape's transparency color would also appear on the snippet itself. This was caused by the selector for the option not being specific enough, and finding the shape of the child as a target, and thus showing up in the snippet menu. This commit fixes the selector so that it only finds the current snippet own shape, and not shapes of its children. task-2390341 closes odoo/odoo#62068 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/web_editor/views/snippets.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/views/snippets.xml b/addons/web_editor/views/snippets.xml
index b270cdef3d0..626bfa68a59 100644
--- a/addons/web_editor/views/snippets.xml
+++ b/addons/web_editor/views/snippets.xml
@@ -338,7 +338,7 @@
<we-button data-flip-y="true" data-no-preview="true" data-dependencies="!shape_none_opt"><i class="fa fa-fw fa-arrows-v"/></we-button>
</we-row>
<we-row string=" ⌙ Colors" data-name="colors">
- <we-colorpicker data-select-style="" data-css-property="background-color" data-color-prefix="bg-" data-apply-to=".o_we_shape"/>
+ <we-colorpicker data-select-style="" data-css-property="background-color" data-color-prefix="bg-" data-apply-to="> .o_we_shape"/>
</we-row>
</div>
</t>