Skip to content

Commit ba313a7

Browse files
phistuckzhukov
authored andcommitted
Added a tooltip to the voice message button (zhukov#1916)
* Added a string for the voice recording button title * Added a title to the voice message button Added it twice - once for accessibility purposes on the anchor that actually activates the action (though hovering does not show this title) and the other is on the element on which the user actually clicks and hovers, in order to show the title. * Added a title to the voice message button
1 parent f636fe1 commit ba313a7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎app/js/locales/en-us.json

+1
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@
549549
"im_emoji_tab": "Emoji",
550550
"im_stickers_tab": "Stickers",
551551
"im_stickers_tab_recent": "Frequently used",
552+
"im_voice_record_title": "Record a message",
552553
"im_media_attach_title": "Send media",
553554
"im_attach_file_title": "Send file",
554555
"im_emoji_btn_title": "Insert emoticon",

‎app/partials/desktop/send_form.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
<i class="icon icon-camera"></i>
5555
</div>
5656

57-
<a class="im_record pull-left">
58-
<div class="im_record_bg">
57+
<a class="im_record pull-left" title="{{'im_voice_record_title' | i18n}}">
58+
<div class="im_record_bg" title="{{'im_voice_record_title' | i18n}}">
5959
<i class="icon icon-mic"></i>
6060
</div>
6161
</a>
@@ -67,4 +67,4 @@
6767
<div my-reply-markup="replyKeyboard"></div>
6868
</div>
6969

70-
</form>
70+
</form>

‎app/partials/mobile/send_form.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<i class="icon icon-paperclip"></i>
4545
</div>
4646

47-
<div class="im_record pull-right">
47+
<div class="im_record pull-right" title="{{'im_voice_record_title' | i18n}}">
4848
<i class="icon icon-mic"></i>
4949
</div>
5050

@@ -56,4 +56,4 @@
5656
<div my-reply-markup="replyKeyboard"></div>
5757
</div>
5858

59-
</form>
59+
</form>

0 commit comments

Comments
 (0)