MDL-64985 message: add aria label to cancel selection button

Add aria labels for cancel edit message button (the little cross
when selecting messages).
This commit is contained in:
Sara Arjona
2019-04-24 17:53:15 +02:00
parent bc342f101a
commit 13fe002e8e
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -39,6 +39,7 @@ $string['blockuserconfirm'] = 'Are you sure you want to block {$a}?';
$string['blockuserconfirmbutton'] = 'Block';
$string['blocknoncontacts'] = 'Prevent non-contacts from messaging me';
$string['canceledit'] = 'Cancel editing messages';
$string['cancelselection'] = 'Cancel message selection';
$string['contactableprivacy'] = 'Accept messages from:';
$string['contactableprivacy_onlycontacts'] = 'My contacts only';
$string['contactableprivacy_coursemember'] = 'My contacts and anyone in my courses';
@@ -38,7 +38,8 @@
<div class="d-flex p-2 align-items-center">
{{#str}} messagesselected:, core_message {{/str}}
<span class="ml-1" data-region="message-selected-court">1</span>
<button type="button" class="ml-auto close" aria-label="" data-action="cancel-edit-mode">
<span aria-hidden="true">&times;</span>
<button type="button" class="ml-auto close" aria-label="{{#str}} cancelselection, core_message {{/str}}"
data-action="cancel-edit-mode">
<span aria-hidden="true">&times;</span>
</button>
</div>