summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/web_kanban_activity.xml
diff options
context:
space:
mode:
authorLuis González <lgonzalez@vauxoo.com>2018-07-08 16:36:36 +0000
committerMartin Trigaux <mat@odoo.com>2018-08-17 16:12:04 +0200
commitbb5a9a6ae61162785a43bc7aadea1829f6b1b9cf (patch)
treeb35df399be4655db1e12b26ed393cebd0b9fd3b6 /addons/mail/static/src/xml/web_kanban_activity.xml
parentd2fd2f20831de39998b5e2822ea5af975d55107d (diff)
[IMP] mail: Add some missing aria attributes
Some aria HTML attributes were missing, and are desirable to provide a better experience for screen reader users. The following attributes are included: - `aria-pressed`: Used in buttons whose function is toggled when pressed. In this case, it is added on the button to follow/unfollow a record. - `role`: used to improve given information about what elements are for. In this case, it is added in the following cases: 1. Buttons to apply filters (e.g. to filter conversations) are set to role="tab". These buttons have the class `o_filter_button`. 2. Elements who are not buttons but have the class `dropdown-menu` are set to role="button". Closes #25667
Diffstat (limited to 'addons/mail/static/src/xml/web_kanban_activity.xml')
-rw-r--r--addons/mail/static/src/xml/web_kanban_activity.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/web_kanban_activity.xml b/addons/mail/static/src/xml/web_kanban_activity.xml
index f61d22d569e..c31aa5f87ce 100644
--- a/addons/mail/static/src/xml/web_kanban_activity.xml
+++ b/addons/mail/static/src/xml/web_kanban_activity.xml
@@ -3,7 +3,7 @@
<t t-name="mail.KanbanActivity">
<div class="o_kanban_inline_block dropdown o_kanban_selection o_mail_activity">
- <a class="dropdown-toggle o-no-caret o_activity_btn" data-toggle="dropdown">
+ <a class="dropdown-toggle o-no-caret o_activity_btn" data-toggle="dropdown" role="button">
<span class="fa fa-clock-o fa-lg fa-fw" t-att-title="widget.selection[widget.activityState]" role="img" t-att-aria-label="widget.selection[widget.activity_state]"/>
</a>
<div class="dropdown-menu o_activity" role="menu"/>