summaryrefslogtreecommitdiff
path: root/addons/website_form
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-10-06 10:32:35 +0000
committerqsm-odoo <qsm@odoo.com>2020-10-07 10:12:03 +0000
commit61ffe97d03deae0aee72568311c453d1cd3470c8 (patch)
tree55131e5078644e999efd5b57a13a4431738e7402 /addons/website_form
parent8f8d1e4d845fe30b5b89e5a24f3c21af092e6476 (diff)
[FIX] web_editor: reduce clickable area of checkboxes in editor panel
Before this commit the clickable zone of a checkbox in the editor was all the width of the panel. After this commit, the clickable zone is only the label width + the checkbox width. Also, the active and hover states of the label have been removed to not confuse the user. task-2312878 closes odoo/odoo#59240 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website_form')
-rw-r--r--addons/website_form/static/tests/tours/website_form_editor.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_form/static/tests/tours/website_form_editor.js b/addons/website_form/static/tests/tours/website_form_editor.js
index 9431307688a..a50afdf1e7b 100644
--- a/addons/website_form/static/tests/tours/website_form_editor.js
+++ b/addons/website_form/static/tests/tours/website_form_editor.js
@@ -43,14 +43,14 @@ odoo.define('website_form_editor.tour', function (require) {
testText += '.s_website_form_required';
ret.push({
content: "Mark the field as required",
- trigger: 'we-button[data-name="required_opt"]',
+ trigger: 'we-button[data-name="required_opt"] we-checkbox',
});
}
if (hidden) {
testText += '.s_website_form_field_hidden';
ret.push({
content: "Mark the field as hidden",
- trigger: 'we-button[data-name="hidden_opt"]',
+ trigger: 'we-button[data-name="hidden_opt"] we-checkbox',
});
}
if (label) {
@@ -176,7 +176,7 @@ odoo.define('website_form_editor.tour', function (require) {
run: 'text Management Service',
}, {
content: "Mark the field as not required",
- trigger: 'we-button[data-name="required_opt"]',
+ trigger: 'we-button[data-name="required_opt"] we-checkbox',
}, {
content: "Check the resulting field",
trigger: ".s_website_form_field.s_website_form_custom:not(.s_website_form_required)" +