summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorLuis González <lgonzalez@vauxoo.com>2021-03-13 18:11:00 +0000
committerNicolas Lempereur <nle@odoo.com>2021-05-05 12:25:12 +0000
commitac3e0fcd32d66d6e0bacfabd2d224805d92dbfd1 (patch)
tree76c2e3023ba18331595c2d34ae2a0b64a140d3d8 /addons/web/static/src/xml
parent51b2c7fad08354499503c5c444dd1a3ae1f26fc1 (diff)
[FIX] web: Aria attributes on buttons Export All & optional columns
Some aria attributes were missing or incorrectly set on these new buttons: - The button "Export All" was missing an `aria-label` attribute - The button to show/hide optional columns was also missing an `aria-label` attribute, and its menu items (checkboxes to show/hide columns) were missing a proper role - Ever since the debug manager was added in frontend on 73327db0656b, the `aria-label` attribute was not being rendered correctly on the button to open developer tools closes odoo/odoo#70390 X-original-commit: 620e4cc28cefed6f4a3b5ca89b11cc37222acfaf Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml2
-rw-r--r--addons/web/static/src/xml/debug.xml7
2 files changed, 6 insertions, 3 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 36b63c852ad..e18890ac188 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -824,7 +824,7 @@
</button>
</t>
<t t-if="widget.is_action_enabled('export_xlsx') and widget.isExportEnable">
- <button type="button" class="btn btn-secondary fa fa-download o_list_export_xlsx" title="Export All"/>
+ <button type="button" class="btn btn-secondary fa fa-download o_list_export_xlsx" title="Export All" aria-label="Export All"/>
</t>
</div>
</t>
diff --git a/addons/web/static/src/xml/debug.xml b/addons/web/static/src/xml/debug.xml
index 0caf3da010e..3c5f593a24e 100644
--- a/addons/web/static/src/xml/debug.xml
+++ b/addons/web/static/src/xml/debug.xml
@@ -3,8 +3,11 @@
<t t-name="WebClient.DebugManager">
<li class="o_debug_manager" role="menuitem">
- <a role="button" href="#" class="o_debug_mode" t-attf-title="Open Developer Tools#{widget.debug_mode_help}"
- t-att-data-debug-mode="widget.debug_mode" aria-label="Open Developer Tools#{widget.debug_mode_help}"
+ <t t-set="_devtool_button_title">Open Developer Tools</t>
+ <a role="button" href="#" class="o_debug_mode"
+ t-att-title="_devtool_button_title + widget.debug_mode_help"
+ t-att-aria-label="_devtool_button_title + widget.debug_mode_help"
+ t-att-data-debug-mode="widget.debug_mode"
data-toggle="dropdown" aria-expanded="false" tabindex="-1" data-display="static">
<span class="fa fa-bug"/>
</a>