diff options
| author | Luis González <lgonzalez@vauxoo.com> | 2021-03-13 18:11:00 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2021-05-05 12:25:12 +0000 |
| commit | ac3e0fcd32d66d6e0bacfabd2d224805d92dbfd1 (patch) | |
| tree | 76c2e3023ba18331595c2d34ae2a0b64a140d3d8 /addons/web/static/src/xml/debug.xml | |
| parent | 51b2c7fad08354499503c5c444dd1a3ae1f26fc1 (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/debug.xml')
| -rw-r--r-- | addons/web/static/src/xml/debug.xml | 7 |
1 files changed, 5 insertions, 2 deletions
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> |
