Skip to content

Commit

Permalink
MDL-64985 message: add aria label to cancel selection button
Browse files Browse the repository at this point in the history
Add aria labels for cancel edit message button (the little cross
when selecting messages).
  • Loading branch information
sarjona committed Apr 24, 2019
1 parent 972146b commit 0f7c446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lang/en/message.php
Expand Up @@ -39,6 +39,7 @@
$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';
Expand Down
Expand Up @@ -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>

0 comments on commit 0f7c446

Please sign in to comment.