From c0d2558c43d9d680d3e51c189765b77684514aa5 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Fri, 15 Mar 2019 13:36:58 +0100 Subject: [PATCH 1/4] MDL-65087 message: add button role to all the links that perfom actions For accessibility reasons, add the role="button" attribute to the links with href="#" performing actions, like the icon to open the messaging drawer. --- message/templates/message_drawer_contacts_list.mustache | 1 + .../templates/message_drawer_conversations_list.mustache | 1 + message/templates/message_drawer_messages_list.mustache | 1 + message/templates/message_drawer_non_contacts_list.mustache | 1 + .../message_drawer_view_contact_body_content.mustache | 2 +- ...drawer_view_contacts_body_section_requests_list.mustache | 1 + .../templates/message_drawer_view_contacts_header.mustache | 4 ++-- ...r_view_conversation_header_content_type_private.mustache | 4 ++-- ...rsation_header_content_type_private_no_controls.mustache | 2 +- ...er_view_conversation_header_content_type_public.mustache | 6 +++--- ...age_drawer_view_conversation_header_placeholder.mustache | 2 +- .../message_drawer_view_group_info_body_content.mustache | 2 +- ...essage_drawer_view_group_info_participants_list.mustache | 1 + .../templates/message_drawer_view_overview_header.mustache | 3 ++- .../templates/message_drawer_view_search_header.mustache | 1 + .../templates/message_drawer_view_settings_header.mustache | 2 +- message/templates/message_popover.mustache | 3 ++- .../templates/notification_preferences_processor.mustache | 3 ++- 18 files changed, 25 insertions(+), 15 deletions(-) diff --git a/message/templates/message_drawer_contacts_list.mustache b/message/templates/message_drawer_contacts_list.mustache index bb395da922f..8d24769fe38 100644 --- a/message/templates/message_drawer_contacts_list.mustache +++ b/message/templates/message_drawer_contacts_list.mustache @@ -49,6 +49,7 @@ {{/conversationid}} data-contact-user-id="{{id}}" data-region="contact" + role="button" > {{#imageurl}} + {{> core_message/message_drawer_icon_back }}
diff --git a/message/templates/message_drawer_view_contacts_body_section_requests_list.mustache b/message/templates/message_drawer_view_contacts_body_section_requests_list.mustache index 17a9eeaee66..4ca2482cb3b 100644 --- a/message/templates/message_drawer_view_contacts_body_section_requests_list.mustache +++ b/message/templates/message_drawer_view_contacts_body_section_requests_list.mustache @@ -49,6 +49,7 @@ {{/conversationid}} data-request-id="{{id}}" data-region="contact-request" + role="button" >
@@ -45,7 +45,7 @@ {{#str}} contacts, core_message {{/str}}
diff --git a/message/templates/message_drawer_view_conversation_header_content_type_private.mustache b/message/templates/message_drawer_view_conversation_header_content_type_private.mustache index 3d748b6150a..365d491e890 100644 --- a/message/templates/message_drawer_view_conversation_header_content_type_private.mustache +++ b/message/templates/message_drawer_view_conversation_header_content_type_private.mustache @@ -37,12 +37,12 @@
- + {{#imageurl}}
diff --git a/message/templates/message_drawer_view_conversation_header_content_type_public.mustache b/message/templates/message_drawer_view_conversation_header_content_type_public.mustache index 152a30ded8b..f9c5afdc0e1 100644 --- a/message/templates/message_drawer_view_conversation_header_content_type_public.mustache +++ b/message/templates/message_drawer_view_conversation_header_content_type_public.mustache @@ -38,12 +38,12 @@
{{#imageurl}}{{/imageurl}} - + {{#str}} numparticipants, core_message, {{totalmembercount}} {{/str}} diff --git a/message/templates/message_drawer_view_conversation_header_placeholder.mustache b/message/templates/message_drawer_view_conversation_header_placeholder.mustache index 1327ec1979a..1cbdbda5637 100644 --- a/message/templates/message_drawer_view_conversation_header_placeholder.mustache +++ b/message/templates/message_drawer_view_conversation_header_placeholder.mustache @@ -36,7 +36,7 @@ }}
diff --git a/message/templates/message_drawer_view_group_info_body_content.mustache b/message/templates/message_drawer_view_group_info_body_content.mustache index 1e484abd82d..e7ce40553fe 100644 --- a/message/templates/message_drawer_view_group_info_body_content.mustache +++ b/message/templates/message_drawer_view_group_info_body_content.mustache @@ -35,7 +35,7 @@ }} - + {{> core_message/message_drawer_icon_back }}
diff --git a/message/templates/message_drawer_view_group_info_participants_list.mustache b/message/templates/message_drawer_view_group_info_participants_list.mustache index fc7d83966e3..c5630c4c750 100644 --- a/message/templates/message_drawer_view_group_info_participants_list.mustache +++ b/message/templates/message_drawer_view_group_info_participants_list.mustache @@ -49,6 +49,7 @@ {{/conversationid}} data-contact-user-id="{{id}}" data-region="contact" + role="button" > {{#pix}} t/edit, core {{/pix}}
- + {{#pix}} i/user, core {{/pix}} {{#str}} contacts, core_message {{/str}} diff --git a/message/templates/message_drawer_view_search_header.mustache b/message/templates/message_drawer_view_search_header.mustache index 8ced5316cd6..86394076c2a 100644 --- a/message/templates/message_drawer_view_search_header.mustache +++ b/message/templates/message_drawer_view_search_header.mustache @@ -41,6 +41,7 @@ href="#" data-route-back data-action="cancel-search" + role="button" > {{> core_message/message_drawer_icon_back }} diff --git a/message/templates/message_drawer_view_settings_header.mustache b/message/templates/message_drawer_view_settings_header.mustache index 3411da49aff..9ac89fba923 100644 --- a/message/templates/message_drawer_view_settings_header.mustache +++ b/message/templates/message_drawer_view_settings_header.mustache @@ -37,7 +37,7 @@