From a0b06afcf3852c2f97eacbddada253c928f37428 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 12 Mar 2018 11:24:41 +0100 Subject: [FIX] web: 'toggle_button' widget in edit mode The 'toggle_button' widget is one of special field widgets that can trigger changes in readonly mode (in this case, toggle the boolean value when clicked). It was working fine in form views in 'readonly' mode, as in this case, the new value is saved directly, and the form view is re-rendered (a new widget is created with the new value). However, in 'edit' mode, the value isn't saved directly (the user has to click on 'Save' to save the changes), the widget is reset with its new value, and the reset wasn't correctly handled in this particular widget. Fixes #23400 --- addons/web/static/src/xml/base.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 87a9ca2c989..29030241204 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1272,7 +1272,7 @@ -- cgit v1.2.3 From baa1c515c592dec9f84c168d72921ff98d989c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Gonz=C3=A1lez?= Date: Tue, 20 Mar 2018 05:29:17 -0400 Subject: [FIX] web: Add missing HTML attributes aria-* (#23752) Some HTML attributes were missing, and are required to ensure good compatibility with screen readers. The following attributes are included: - `aria-expanded`: this should be present in all dropdown menus - `aria-label`: this should be present in all links and buttons which don't show text, but icons or images. --- addons/web/static/src/xml/base.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 29030241204..405646c98f0 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -211,7 +211,7 @@
  • - +