Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 8dd95b4

Browse files
fcnjdzhukov
authored andcommitted
labeled the main menu button for screen reader users to help blind people (#1877)
1 parent c9f4a31 commit 8dd95b4

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

app/js/locales/de-de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@
407407
"error_modal_gelocation_na": "App kann deinen aktuellen Standort nicht bestimmen",
408408
"error_modal_2fa_recent_confirm": "Deine vorherigen Versuche das Konto zurückzusetzen wurden durch den aktiven Nutzer abgebrochen. Bitte in 7 Tagen erneut probieren.",
409409
"error_modal_2fa_delayed_time_md": "Du kannst dein Konto zurücksetzen in: **{time}**",
410+
"head_mainmenu": "Hauptmenü",
410411
"head_telegram": "Telegram",
411412
"head_new_group": "Neue Gruppe",
412413
"head_new_contact": "Neuer Kontakt",
@@ -837,4 +838,4 @@
837838
"country_select_modal_country_zm": "Sambia",
838839
"country_select_modal_country_tz_uk": "Sansibar",
839840
"country_select_modal_country_zw": "Simbabwe"
840-
}
841+
}

app/js/locales/en-us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
"error_modal_2fa_recent_confirm": "Your recent attempts to reset this account have been cancelled by its active user. Please try again in 7 days.",
461461
"error_modal_2fa_delayed_time_md": "You'll be able to reset your account in: **{time}**",
462462

463-
463+
"head_mainmenu": "Main menu",
464464
"head_telegram": "Telegram",
465465
"head_new_group": "New group",
466466
"head_new_contact": "New contact",

app/less/app.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5023,4 +5023,10 @@ a.countries_modal_search_clear {
50235023
}
50245024
}
50255025

5026-
5026+
.visually-hidden { /* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
5027+
position: absolute !important;
5028+
height: 1px; width: 1px;
5029+
overflow: hidden;
5030+
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
5031+
clip: rect(1px, 1px, 1px, 1px);
5032+
}

app/partials/desktop/head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<div class="tg_head_logo_wrap">
55
<div class="tg_head_logo_dropdown dropdown" dropdown>
66
<a class="tg_head_btn dropdown-toggle" dropdown-toggle>
7+
<span class="visually-hidden" my-i18n="head_mainmenu"></span>
78
<div class="icon-hamburger-wrap">
89
<span class="icon-bar"></span>
910
<span class="icon-bar"></span>
@@ -112,4 +113,4 @@
112113
</div>
113114
</div>
114115
</div>
115-
</div>
116+
</div>

0 commit comments

Comments
 (0)