Skip to content

Email for professionals and teams

Make message rows reachable by keyboard and add a skip link (#91)

Can K.150433379582
diff --git a/public/locales/ar.json b/public/locales/ar.json
index 437e576..3c9f19e 100644
--- a/public/locales/ar.json
+++ b/public/locales/ar.json
@@ -159,6 +159,7 @@
"list.notStarred": "غير مميّزة بنجمة",
"list.selectFrom": "تحديد الرسالة من {sender}",
"list.selectMessage": "تحديد الرسالة",
+ "list.unread": "غير مقروءة",
"list.selectAll": "تحديد جميع الرسائل الظاهرة",
"list.range": "{start} - {end} من {total}",
"list.previousPage": "الصفحة السابقة",
@@ -318,6 +319,7 @@
"account.signOut": "تسجيل الخروج",
"account.profilePicture": "صورة الملف الشخصي لـ {name}",
"nav.loading": "جارٍ التحميل",
+ "a11y.skipToContent": "انتقل إلى المحتوى الرئيسي",
"admin.nav.overview": "نظرة عامة",
"admin.nav.email": "البريد",
"admin.nav.mailboxes": "صناديق البريد",
diff --git a/public/locales/bn.json b/public/locales/bn.json
index 32ad200..f5d4087 100644
--- a/public/locales/bn.json
+++ b/public/locales/bn.json
@@ -147,6 +147,7 @@
"list.notStarred": "তারকা চিহ্নিত নয়",
"list.selectFrom": "{sender}-এর বার্তা নির্বাচন করুন",
"list.selectMessage": "বার্তা নির্বাচন করুন",
+ "list.unread": "অপঠিত",
"list.selectAll": "দৃশ্যমান সব বার্তা নির্বাচন করুন",
"list.range": "{total}-এর মধ্যে {start} - {end}",
"list.previousPage": "আগের পৃষ্ঠা",
@@ -302,6 +303,7 @@
"account.signOut": "সাইন আউট",
"account.profilePicture": "{name}-এর প্রোফাইল ছবি",
"nav.loading": "লোড হচ্ছে",
+ "a11y.skipToContent": "প্রধান বিষয়বস্তুতে যান",
"admin.nav.overview": "সংক্ষিপ্ত বিবরণ",
"admin.nav.email": "ইমেইল",
"admin.nav.mailboxes": "মেইলবক্স",
diff --git a/public/locales/de.json b/public/locales/de.json
index 978259c..0dd3512 100644
--- a/public/locales/de.json
+++ b/public/locales/de.json
@@ -147,6 +147,7 @@
"list.notStarred": "Nicht markiert",
"list.selectFrom": "Nachricht von {sender} auswählen",
"list.selectMessage": "Nachricht auswählen",
+ "list.unread": "Ungelesen",
"list.selectAll": "Alle sichtbaren Nachrichten auswählen",
"list.range": "{start} - {end} von {total}",
"list.previousPage": "Vorherige Seite",
@@ -302,6 +303,7 @@
"account.signOut": "Abmelden",
"account.profilePicture": "Profilbild von {name}",
"nav.loading": "Wird geladen",
+ "a11y.skipToContent": "Zum Hauptinhalt springen",
"admin.nav.overview": "Übersicht",
"admin.nav.email": "E-Mail",
"admin.nav.mailboxes": "Postfächer",
diff --git a/public/locales/es.json b/public/locales/es.json
index a6fc9e4..e3d5d91 100644
--- a/public/locales/es.json
+++ b/public/locales/es.json
@@ -147,6 +147,7 @@
"list.notStarred": "Sin destacar",
"list.selectFrom": "Seleccionar mensaje de {sender}",
"list.selectMessage": "Seleccionar mensaje",
+ "list.unread": "No leído",
"list.selectAll": "Seleccionar todos los mensajes visibles",
"list.range": "{start} - {end} de {total}",
"list.previousPage": "Página anterior",
@@ -302,6 +303,7 @@
"account.signOut": "Cerrar sesión",
"account.profilePicture": "Foto de perfil de {name}",
"nav.loading": "Cargando",
+ "a11y.skipToContent": "Saltar al contenido principal",
"admin.nav.overview": "Resumen",
"admin.nav.email": "Correo",
"admin.nav.mailboxes": "Buzones",
diff --git a/public/locales/fa.json b/public/locales/fa.json
index 2327547..27f03b3 100644
--- a/public/locales/fa.json
+++ b/public/locales/fa.json
@@ -147,6 +147,7 @@
"list.notStarred": "بدون ستاره",
"list.selectFrom": "انتخاب پیام از {sender}",
"list.selectMessage": "انتخاب پیام",
+ "list.unread": "خوانده‌نشده",
"list.selectAll": "انتخاب همه پیام‌های نمایان",
"list.range": "{start} - {end} از {total}",
"list.previousPage": "صفحه قبل",
@@ -302,6 +303,7 @@
"account.signOut": "خروج از حساب",
"account.profilePicture": "تصویر نمایه {name}",
"nav.loading": "در حال بارگذاری",
+ "a11y.skipToContent": "پرش به محتوای اصلی",
"admin.nav.overview": "نمای کلی",
"admin.nav.email": "ایمیل",
"admin.nav.mailboxes": "صندوق‌های پستی",
diff --git a/public/locales/fr.json b/public/locales/fr.json
index 203ecb7..e9a38a9 100644
--- a/public/locales/fr.json
+++ b/public/locales/fr.json
@@ -147,6 +147,7 @@
"list.notStarred": "Non suivi",
"list.selectFrom": "Sélectionner le message de {sender}",
"list.selectMessage": "Sélectionner le message",
+ "list.unread": "Non lu",
"list.selectAll": "Sélectionner tous les messages visibles",
"list.range": "{start} - {end} sur {total}",
"list.previousPage": "Page précédente",
@@ -302,6 +303,7 @@
"account.signOut": "Se déconnecter",
"account.profilePicture": "Photo de profil de {name}",
"nav.loading": "Chargement",
+ "a11y.skipToContent": "Aller au contenu principal",
"admin.nav.overview": "Vue d'ensemble",
"admin.nav.email": "E-mail",
"admin.nav.mailboxes": "Boîtes mail",
diff --git a/public/locales/gu.json b/public/locales/gu.json
index 580e89e..c775933 100644
--- a/public/locales/gu.json
+++ b/public/locales/gu.json
@@ -147,6 +147,7 @@
"list.notStarred": "તારાંકિત નથી",
"list.selectFrom": "{sender} તરફથી સંદેશો પસંદ કરો",
"list.selectMessage": "સંદેશો પસંદ કરો",
+ "list.unread": "વાંચ્યા વગરનું",
"list.selectAll": "બધા દેખાતા સંદેશા પસંદ કરો",
"list.range": "{total} માંથી {start} - {end}",
"list.previousPage": "પાછલું પૃષ્ઠ",
@@ -302,6 +303,7 @@
"account.signOut": "સાઇન આઉટ કરો",
"account.profilePicture": "{name} નો પ્રોફાઇલ ફોટો",
"nav.loading": "લોડ થઈ રહ્યું છે",
+ "a11y.skipToContent": "મુખ્ય સામગ્રી પર જાઓ",
"admin.nav.overview": "ઝાંખી",
"admin.nav.email": "ઇમેઇલ",
"admin.nav.mailboxes": "મેલબૉક્સ",
diff --git a/public/locales/ha.json b/public/locales/ha.json
index 3e4f7c6..5a8f2ff 100644
--- a/public/locales/ha.json
+++ b/public/locales/ha.json
@@ -147,6 +147,7 @@
"list.notStarred": "Ba shi da tauraro",
"list.selectFrom": "Zaɓi saƙo daga {sender}",
"list.selectMessage": "Zaɓi saƙo",
+ "list.unread": "Ba a karanta ba",
"list.selectAll": "Zaɓi duk saƙonnin da ake gani",
"list.range": "{start} - {end} cikin {total}",
"list.previousPage": "Shafin da ya gabata",
@@ -302,6 +303,7 @@
"account.signOut": "Fita",
"account.profilePicture": "Hoton bayanan {name}",
"nav.loading": "Ana loda",
+ "a11y.skipToContent": "Tsallaka zuwa babban abun ciki",
"admin.nav.overview": "Bayani a taƙaice",
"admin.nav.email": "Imel",
"admin.nav.mailboxes": "Akwatunan saƙo",
diff --git a/public/locales/hi.json b/public/locales/hi.json
index 4e00bd9..8554ec3 100644
--- a/public/locales/hi.json
+++ b/public/locales/hi.json
@@ -147,6 +147,7 @@
"list.notStarred": "स्टार नहीं लगा",
"list.selectFrom": "{sender} का संदेश चुनें",
"list.selectMessage": "संदेश चुनें",
+ "list.unread": "अपठित",
"list.selectAll": "सभी दिखाई दे रहे संदेश चुनें",
"list.range": "{total} में से {start} - {end}",
"list.previousPage": "पिछला पृष्ठ",
@@ -302,6 +303,7 @@
"account.signOut": "साइन आउट करें",
"account.profilePicture": "{name} की प्रोफ़ाइल तस्वीर",
"nav.loading": "लोड हो रहा है",
+ "a11y.skipToContent": "मुख्य सामग्री पर जाएँ",
"admin.nav.overview": "अवलोकन",
"admin.nav.email": "ईमेल",
"admin.nav.mailboxes": "मेलबॉक्स",
diff --git a/public/locales/id.json b/public/locales/id.json
index 0915b0f..7436df7 100644
--- a/public/locales/id.json
+++ b/public/locales/id.json
@@ -144,6 +144,7 @@
"list.notStarred": "Tidak berbintang",
"list.selectFrom": "Pilih pesan dari {sender}",
"list.selectMessage": "Pilih pesan",
+ "list.unread": "Belum dibaca",
"list.selectAll": "Pilih semua pesan yang terlihat",
"list.range": "{start} - {end} dari {total}",
"list.previousPage": "Halaman sebelumnya",
@@ -298,6 +299,7 @@
"account.signOut": "Keluar",
"account.profilePicture": "Foto profil {name}",
"nav.loading": "Memuat",
+ "a11y.skipToContent": "Langsung ke konten utama",
"admin.nav.overview": "Ringkasan",
"admin.nav.email": "Email",
"admin.nav.mailboxes": "Kotak surat",
diff --git a/public/locales/it.json b/public/locales/it.json
index b337ab8..cb24f95 100644
--- a/public/locales/it.json
+++ b/public/locales/it.json
@@ -147,6 +147,7 @@
"list.notStarred": "Non speciale",
"list.selectFrom": "Seleziona il messaggio di {sender}",
"list.selectMessage": "Seleziona messaggio",
+ "list.unread": "Non letto",
"list.selectAll": "Seleziona tutti i messaggi visibili",
"list.range": "{start} - {end} di {total}",
"list.previousPage": "Pagina precedente",
@@ -302,6 +303,7 @@
"account.signOut": "Disconnetti",
"account.profilePicture": "Immagine del profilo di {name}",
"nav.loading": "Caricamento",
+ "a11y.skipToContent": "Vai al contenuto principale",
"admin.nav.overview": "Panoramica",
"admin.nav.email": "Email",
"admin.nav.mailboxes": "Caselle",
diff --git a/public/locales/ja.json b/public/locales/ja.json
index dd93c6d..7271dc9 100644
--- a/public/locales/ja.json
+++ b/public/locales/ja.json
@@ -144,6 +144,7 @@
"list.notStarred": "スターなし",
"list.selectFrom": "{sender}からのメールを選択",
"list.selectMessage": "メールを選択",
+ "list.unread": "未読",
"list.selectAll": "表示中のメールをすべて選択",
"list.range": "{total} 件中 {start}~{end} 件",
"list.previousPage": "前のページ",
@@ -298,6 +299,7 @@
"account.signOut": "サインアウト",
"account.profilePicture": "{name}のプロフィール画像",
"nav.loading": "読み込み中",
+ "a11y.skipToContent": "メインコンテンツへ移動",
"admin.nav.overview": "概要",
"admin.nav.email": "メール",
"admin.nav.mailboxes": "メールボックス",
diff --git a/public/locales/kn.json b/public/locales/kn.json
index 3967ea6..8ee9540 100644
--- a/public/locales/kn.json
+++ b/public/locales/kn.json
@@ -147,6 +147,7 @@
"list.notStarred": "ನಕ್ಷತ್ರ ಹಾಕಿಲ್ಲ",
"list.selectFrom": "{sender} ಅವರ ಸಂದೇಶವನ್ನು ಆಯ್ಕೆಮಾಡಿ",
"list.selectMessage": "ಸಂದೇಶವನ್ನು ಆಯ್ಕೆಮಾಡಿ",
+ "list.unread": "ಓದದಿರುವುದು",
"list.selectAll": "ಗೋಚರಿಸುವ ಎಲ್ಲಾ ಸಂದೇಶಗಳನ್ನು ಆಯ್ಕೆಮಾಡಿ",
"list.range": "{total} ರಲ್ಲಿ {start} - {end}",
"list.previousPage": "ಹಿಂದಿನ ಪುಟ",
@@ -302,6 +303,7 @@
"account.signOut": "ಸೈನ್ ಔಟ್ ಮಾಡಿ",
"account.profilePicture": "{name} ಅವರ ಪ್ರೊಫೈಲ್ ಚಿತ್ರ",
"nav.loading": "ಲೋಡ್ ಆಗುತ್ತಿದೆ",
+ "a11y.skipToContent": "ಮುಖ್ಯ ವಿಷಯಕ್ಕೆ ಹೋಗಿ",
"admin.nav.overview": "ಅವಲೋಕನ",
"admin.nav.email": "ಇಮೇಲ್",
"admin.nav.mailboxes": "ಮೇಲ್‌ಬಾಕ್ಸ್‌ಗಳು",
diff --git a/public/locales/ko.json b/public/locales/ko.json
index b7a3e9a..3f6242c 100644
--- a/public/locales/ko.json
+++ b/public/locales/ko.json
@@ -147,6 +147,7 @@
"list.notStarred": "별표 없음",
"list.selectFrom": "{sender}님의 메시지 선택",
"list.selectMessage": "메시지 선택",
+ "list.unread": "읽지 않음",
"list.selectAll": "표시된 모든 메시지 선택",
"list.range": "{total}개 중 {start} - {end}",
"list.previousPage": "이전 페이지",
@@ -302,6 +303,7 @@
"account.signOut": "로그아웃",
"account.profilePicture": "{name} 프로필 사진",
"nav.loading": "불러오는 중",
+ "a11y.skipToContent": "본문으로 건너뛰기",
"admin.nav.overview": "개요",
"admin.nav.email": "이메일",
"admin.nav.mailboxes": "메일함",
diff --git a/public/locales/ml.json b/public/locales/ml.json
index 6a29b02..435dc47 100644
--- a/public/locales/ml.json
+++ b/public/locales/ml.json
@@ -147,6 +147,7 @@
"list.notStarred": "നക്ഷത്രമിടാത്തത്",
"list.selectFrom": "{sender} ൽ നിന്നുള്ള സന്ദേശം തിരഞ്ഞെടുക്കുക",
"list.selectMessage": "സന്ദേശം തിരഞ്ഞെടുക്കുക",
+ "list.unread": "വായിക്കാത്തത്",
"list.selectAll": "ദൃശ്യമായ എല്ലാ സന്ദേശങ്ങളും തിരഞ്ഞെടുക്കുക",
"list.range": "{total} ൽ {start} - {end}",
"list.previousPage": "മുൻ പേജ്",
@@ -302,6 +303,7 @@
"account.signOut": "സൈൻ ഔട്ട് ചെയ്യുക",
"account.profilePicture": "{name} ന്റെ പ്രൊഫൈൽ ചിത്രം",
"nav.loading": "ലോഡ് ചെയ്യുന്നു",
+ "a11y.skipToContent": "പ്രധാന ഉള്ളടക്കത്തിലേക്ക് പോകുക",
"admin.nav.overview": "അവലോകനം",
"admin.nav.email": "ഇമെയിൽ",
"admin.nav.mailboxes": "മെയിൽബോക്സുകൾ",
diff --git a/public/locales/mr.json b/public/locales/mr.json
index bab1284..322311d 100644
--- a/public/locales/mr.json
+++ b/public/locales/mr.json
@@ -147,6 +147,7 @@
"list.notStarred": "तारांकित नाही",
"list.selectFrom": "{sender} कडील संदेश निवडा",
"list.selectMessage": "संदेश निवडा",
+ "list.unread": "न वाचलेले",
"list.selectAll": "दिसणारे सर्व संदेश निवडा",
"list.range": "{total} पैकी {start} - {end}",
"list.previousPage": "मागील पृष्ठ",
@@ -302,6 +303,7 @@
"account.signOut": "साइन आउट",
"account.profilePicture": "{name} चे प्रोफाइल चित्र",
"nav.loading": "लोड होत आहे",
+ "a11y.skipToContent": "मुख्य मजकुराकडे जा",
"admin.nav.overview": "आढावा",
"admin.nav.email": "ईमेल",
"admin.nav.mailboxes": "मेलबॉक्स",
diff --git a/public/locales/ms.json b/public/locales/ms.json
index 1750f78..a66b609 100644
--- a/public/locales/ms.json
+++ b/public/locales/ms.json
@@ -147,6 +147,7 @@
"list.notStarred": "Tidak berbintang",
"list.selectFrom": "Pilih mesej daripada {sender}",
"list.selectMessage": "Pilih mesej",
+ "list.unread": "Belum dibaca",
"list.selectAll": "Pilih semua mesej yang kelihatan",
"list.range": "{start} - {end} daripada {total}",
"list.previousPage": "Halaman sebelumnya",
@@ -302,6 +303,7 @@
"account.signOut": "Log keluar",
"account.profilePicture": "Gambar profil {name}",
"nav.loading": "Memuatkan",
+ "a11y.skipToContent": "Langkau ke kandungan utama",
"admin.nav.overview": "Gambaran keseluruhan",
"admin.nav.email": "E-mel",
"admin.nav.mailboxes": "Peti mel",
diff --git a/public/locales/nl.json b/public/locales/nl.json
index d370f9e..8d7cfe7 100644
--- a/public/locales/nl.json
+++ b/public/locales/nl.json
@@ -147,6 +147,7 @@
"list.notStarred": "Zonder ster",
"list.selectFrom": "Bericht van {sender} selecteren",
"list.selectMessage": "Bericht selecteren",
+ "list.unread": "Ongelezen",
"list.selectAll": "Alle zichtbare berichten selecteren",
"list.range": "{start} - {end} van {total}",
"list.previousPage": "Vorige pagina",
@@ -302,6 +303,7 @@
"account.signOut": "Afmelden",
"account.profilePicture": "Profielfoto van {name}",
"nav.loading": "Laden",
+ "a11y.skipToContent": "Naar hoofdinhoud springen",
"admin.nav.overview": "Overzicht",
"admin.nav.email": "E-mail",
"admin.nav.mailboxes": "Mailboxen",
diff --git a/public/locales/pa.json b/public/locales/pa.json
index 5a7d49f..6e5659c 100644
--- a/public/locales/pa.json
+++ b/public/locales/pa.json
@@ -147,6 +147,7 @@
"list.notStarred": "ਤਾਰੇ ਤੋਂ ਬਿਨਾਂ",
"list.selectFrom": "{sender} ਦਾ ਸੁਨੇਹਾ ਚੁਣੋ",
"list.selectMessage": "ਸੁਨੇਹਾ ਚੁਣੋ",
+ "list.unread": "ਨਾ-ਪੜ੍ਹਿਆ",
"list.selectAll": "ਸਾਰੇ ਦਿਖਾਈ ਦੇਣ ਵਾਲੇ ਸੁਨੇਹੇ ਚੁਣੋ",
"list.range": "{total} ਵਿੱਚੋਂ {start} - {end}",
"list.previousPage": "ਪਿਛਲਾ ਪੰਨਾ",
@@ -302,6 +303,7 @@
"account.signOut": "ਸਾਈਨ ਆਊਟ ਕਰੋ",
"account.profilePicture": "{name} ਦੀ ਪ੍ਰੋਫ਼ਾਈਲ ਫੋਟੋ",
"nav.loading": "ਲੋਡ ਹੋ ਰਿਹਾ ਹੈ",
+ "a11y.skipToContent": "ਮੁੱਖ ਸਮੱਗਰੀ ’ਤੇ ਜਾਓ",
"admin.nav.overview": "ਸੰਖੇਪ ਜਾਣਕਾਰੀ",
"admin.nav.email": "ਈਮੇਲ",
"admin.nav.mailboxes": "ਮੇਲਬਾਕਸ",
diff --git a/public/locales/pl.json b/public/locales/pl.json
index 7e293ff..511481d 100644
--- a/public/locales/pl.json
+++ b/public/locales/pl.json
@@ -150,6 +150,7 @@
"list.notStarred": "Bez gwiazdki",
"list.selectFrom": "Zaznacz wiadomość od: {sender}",
"list.selectMessage": "Zaznacz wiadomość",
+ "list.unread": "Nieprzeczytane",
"list.selectAll": "Zaznacz wszystkie widoczne wiadomości",
"list.range": "{start} - {end} z {total}",
"list.previousPage": "Poprzednia strona",
@@ -305,6 +306,7 @@
"account.signOut": "Wyloguj się",
"account.profilePicture": "Zdjęcie profilowe: {name}",
"nav.loading": "Ładowanie",
+ "a11y.skipToContent": "Przejdź do głównej treści",
"admin.nav.overview": "Przegląd",
"admin.nav.email": "E-mail",
"admin.nav.mailboxes": "Skrzynki pocztowe",
diff --git a/public/locales/pt-BR.json b/public/locales/pt-BR.json
index 7b052f4..c8a6a36 100644
--- a/public/locales/pt-BR.json
+++ b/public/locales/pt-BR.json
@@ -147,6 +147,7 @@
"list.notStarred": "Sem estrela",
"list.selectFrom": "Selecionar mensagem de {sender}",
"list.selectMessage": "Selecionar mensagem",
+ "list.unread": "Não lida",
"list.selectAll": "Selecionar todas as mensagens visíveis",
"list.range": "{start} - {end} de {total}",
"list.previousPage": "Página anterior",
@@ -302,6 +303,7 @@
"account.signOut": "Sair",
"account.profilePicture": "Foto de perfil de {name}",
"nav.loading": "Carregando",
+ "a11y.skipToContent": "Ir para o conteúdo principal",
"admin.nav.overview": "Visão geral",
"admin.nav.email": "E-mail",
"admin.nav.mailboxes": "Caixas de correio",
diff --git a/public/locales/pt-PT.json b/public/locales/pt-PT.json
index 2acc2cc..33be0ef 100644
--- a/public/locales/pt-PT.json
+++ b/public/locales/pt-PT.json
@@ -147,6 +147,7 @@
"list.notStarred": "Sem estrela",
"list.selectFrom": "Selecionar mensagem de {sender}",
"list.selectMessage": "Selecionar mensagem",
+ "list.unread": "Não lida",
"list.selectAll": "Selecionar todas as mensagens visíveis",
"list.range": "{start} - {end} de {total}",
"list.previousPage": "Página anterior",
@@ -302,6 +303,7 @@
"account.signOut": "Terminar sessão",
"account.profilePicture": "Foto de perfil de {name}",
"nav.loading": "A carregar",
+ "a11y.skipToContent": "Saltar para o conteúdo principal",
"admin.nav.overview": "Visão geral",
"admin.nav.email": "Email",
"admin.nav.mailboxes": "Caixas de correio",
diff --git a/public/locales/ru.json b/public/locales/ru.json
index 07ca085..ccfc8ac 100644
--- a/public/locales/ru.json
+++ b/public/locales/ru.json
@@ -150,6 +150,7 @@
"list.notStarred": "Не помечено",
"list.selectFrom": "Выбрать сообщение от {sender}",
"list.selectMessage": "Выбрать сообщение",
+ "list.unread": "Не прочитано",
"list.selectAll": "Выбрать все видимые сообщения",
"list.range": "{start} – {end} из {total}",
"list.previousPage": "Предыдущая страница",
@@ -306,6 +307,7 @@
"account.signOut": "Выйти",
"account.profilePicture": "Фото профиля: {name}",
"nav.loading": "Загрузка",
+ "a11y.skipToContent": "Перейти к основному содержимому",
"admin.nav.overview": "Обзор",
"admin.nav.email": "Почта",
"admin.nav.mailboxes": "Почтовые ящики",
diff --git a/public/locales/sw.json b/public/locales/sw.json
index 1c39868..0efee05 100644
--- a/public/locales/sw.json
+++ b/public/locales/sw.json
@@ -147,6 +147,7 @@
"list.notStarred": "Haijatiwa nyota",
"list.selectFrom": "Chagua ujumbe kutoka kwa {sender}",
"list.selectMessage": "Chagua ujumbe",
+ "list.unread": "Haijasomwa",
"list.selectAll": "Chagua jumbe zote zinazoonekana",
"list.range": "{start} - {end} kati ya {total}",
"list.previousPage": "Ukurasa uliopita",
@@ -302,6 +303,7 @@
"account.signOut": "Ondoka",
"account.profilePicture": "Picha ya wasifu ya {name}",
"nav.loading": "Inapakia",
+ "a11y.skipToContent": "Ruka hadi maudhui makuu",
"admin.nav.overview": "Muhtasari",
"admin.nav.email": "Barua pepe",
"admin.nav.mailboxes": "Visanduku vya barua",
diff --git a/public/locales/ta.json b/public/locales/ta.json
index 3c0a17f..91de39e 100644
--- a/public/locales/ta.json
+++ b/public/locales/ta.json
@@ -147,6 +147,7 @@
"list.notStarred": "நட்சத்திரமிடாதது",
"list.selectFrom": "{sender} அனுப்பிய செய்தியைத் தேர்ந்தெடு",
"list.selectMessage": "செய்தியைத் தேர்ந்தெடு",
+ "list.unread": "படிக்காதது",
"list.selectAll": "தெரியும் அனைத்துச் செய்திகளையும் தேர்ந்தெடு",
"list.range": "{total} இல் {start} - {end}",
"list.previousPage": "முந்தைய பக்கம்",
@@ -302,6 +303,7 @@
"account.signOut": "வெளியேறு",
"account.profilePicture": "{name} இன் சுயவிவரப் படம்",
"nav.loading": "ஏற்றப்படுகிறது",
+ "a11y.skipToContent": "முதன்மை உள்ளடக்கத்திற்குச் செல்",
"admin.nav.overview": "மேலோட்டம்",
"admin.nav.email": "மின்னஞ்சல்",
"admin.nav.mailboxes": "அஞ்சல் பெட்டிகள்",
diff --git a/public/locales/te.json b/public/locales/te.json
index 8a31824..cab6256 100644
--- a/public/locales/te.json
+++ b/public/locales/te.json
@@ -147,6 +147,7 @@
"list.notStarred": "నక్షత్రం గుర్తు లేదు",
"list.selectFrom": "{sender} నుండి సందేశాన్ని ఎంచుకోండి",
"list.selectMessage": "సందేశాన్ని ఎంచుకోండి",
+ "list.unread": "చదవనిది",
"list.selectAll": "కనిపిస్తున్న అన్ని సందేశాలను ఎంచుకోండి",
"list.range": "{total} లో {start} - {end}",
"list.previousPage": "మునుపటి పేజీ",
@@ -302,6 +303,7 @@
"account.signOut": "సైన్ అవుట్ చేయండి",
"account.profilePicture": "{name} ప్రొఫైల్ చిత్రం",
"nav.loading": "లోడ్ అవుతోంది",
+ "a11y.skipToContent": "ప్రధాన కంటెంట్‌కు వెళ்లండి",
"admin.nav.overview": "అవలోకనం",
"admin.nav.email": "ఇమెయిల్",
"admin.nav.mailboxes": "మెయిల్‌బాక్స్‌లు",
diff --git a/public/locales/th.json b/public/locales/th.json
index 0f04f54..81f62a3 100644
--- a/public/locales/th.json
+++ b/public/locales/th.json
@@ -147,6 +147,7 @@
"list.notStarred": "ไม่ได้ติดดาว",
"list.selectFrom": "เลือกข้อความจาก {sender}",
"list.selectMessage": "เลือกข้อความ",
+ "list.unread": "ยังไม่ได้อ่าน",
"list.selectAll": "เลือกข้อความที่มองเห็นทั้งหมด",
"list.range": "{start} - {end} จาก {total}",
"list.previousPage": "หน้าก่อนหน้า",
@@ -302,6 +303,7 @@
"account.signOut": "ออกจากระบบ",
"account.profilePicture": "รูปโปรไฟล์ของ {name}",
"nav.loading": "กำลังโหลด",
+ "a11y.skipToContent": "ข้ามไปยังเนื้อหาหลัก",
"admin.nav.overview": "ภาพรวม",
"admin.nav.email": "อีเมล",
"admin.nav.mailboxes": "กล่องจดหมาย",
diff --git a/public/locales/tr.json b/public/locales/tr.json
index 7afda4d..f22f7dc 100644
--- a/public/locales/tr.json
+++ b/public/locales/tr.json
@@ -147,6 +147,7 @@
"list.notStarred": "Yıldızsız",
"list.selectFrom": "{sender} gönderenin iletisini seç",
"list.selectMessage": "İletiyi seç",
+ "list.unread": "Okunmadı",
"list.selectAll": "Görünen tüm iletileri seç",
"list.range": "{total} içinde {start} - {end}",
"list.previousPage": "Önceki sayfa",
@@ -302,6 +303,7 @@
"account.signOut": "Oturumu kapat",
"account.profilePicture": "{name} profil fotoğrafı",
"nav.loading": "Yükleniyor",
+ "a11y.skipToContent": "Ana içeriğe geç",
"admin.nav.overview": "Genel Bakış",
"admin.nav.email": "E-posta",
"admin.nav.mailboxes": "Posta kutuları",
diff --git a/public/locales/uk.json b/public/locales/uk.json
index c6e96b7..81167ec 100644
--- a/public/locales/uk.json
+++ b/public/locales/uk.json
@@ -150,6 +150,7 @@
"list.notStarred": "Без зірочки",
"list.selectFrom": "Вибрати повідомлення від: {sender}",
"list.selectMessage": "Вибрати повідомлення",
+ "list.unread": "Непрочитане",
"list.selectAll": "Вибрати всі видимі повідомлення",
"list.range": "{start} - {end} із {total}",
"list.previousPage": "Попередня сторінка",
@@ -305,6 +306,7 @@
"account.signOut": "Вийти",
"account.profilePicture": "Фото профілю: {name}",
"nav.loading": "Завантаження",
+ "a11y.skipToContent": "Перейти до основного вмісту",
"admin.nav.overview": "Огляд",
"admin.nav.email": "Електронна пошта",
"admin.nav.mailboxes": "Поштові скриньки",
diff --git a/public/locales/ur.json b/public/locales/ur.json
index e3f9087..c8443c4 100644
--- a/public/locales/ur.json
+++ b/public/locales/ur.json
@@ -147,6 +147,7 @@
"list.notStarred": "بغیر ستارہ",
"list.selectFrom": "{sender} کا پیغام منتخب کریں",
"list.selectMessage": "پیغام منتخب کریں",
+ "list.unread": "غیر پڑھا ہوا",
"list.selectAll": "تمام نظر آنے والے پیغامات منتخب کریں",
"list.range": "{total} میں سے {start} - {end}",
"list.previousPage": "پچھلا صفحہ",
@@ -302,6 +303,7 @@
"account.signOut": "سائن آؤٹ",
"account.profilePicture": "{name} کی پروفائل تصویر",
"nav.loading": "لوڈ ہو رہا ہے",
+ "a11y.skipToContent": "مرکزی مواد پر جائیں",
"admin.nav.overview": "جائزہ",
"admin.nav.email": "ای میل",
"admin.nav.mailboxes": "میل باکسز",
diff --git a/public/locales/vi.json b/public/locales/vi.json
index fd07e45..829c53a 100644
--- a/public/locales/vi.json
+++ b/public/locales/vi.json
@@ -144,6 +144,7 @@
"list.notStarred": "Không gắn sao",
"list.selectFrom": "Chọn thư từ {sender}",
"list.selectMessage": "Chọn thư",
+ "list.unread": "Chưa đọc",
"list.selectAll": "Chọn tất cả thư đang hiển thị",
"list.range": "{start} - {end} trên {total}",
"list.previousPage": "Trang trước",
@@ -298,6 +299,7 @@
"account.signOut": "Đăng xuất",
"account.profilePicture": "Ảnh hồ sơ của {name}",
"nav.loading": "Đang tải",
+ "a11y.skipToContent": "Chuyển đến nội dung chính",
"admin.nav.overview": "Tổng quan",
"admin.nav.email": "Email",
"admin.nav.mailboxes": "Hộp thư",
diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json
index 0a5323e..7031b5c 100644
--- a/public/locales/zh-CN.json
+++ b/public/locales/zh-CN.json
@@ -144,6 +144,7 @@
"list.notStarred": "未加星标",
"list.selectFrom": "选择来自 {sender} 的邮件",
"list.selectMessage": "选择邮件",
+ "list.unread": "未读",
"list.selectAll": "选择所有可见邮件",
"list.range": "第 {start}–{end} 封,共 {total} 封",
"list.previousPage": "上一页",
@@ -298,6 +299,7 @@
"account.signOut": "退出登录",
"account.profilePicture": "{name} 的头像",
"nav.loading": "正在加载",
+ "a11y.skipToContent": "跳到主要内容",
"admin.nav.overview": "概览",
"admin.nav.email": "邮件",
"admin.nav.mailboxes": "邮箱",
diff --git a/src/app/(admin)/layout.tsx b/src/app/(admin)/layout.tsx
index 53b9e89..25c6817 100644
--- a/src/app/(admin)/layout.tsx
+++ b/src/app/(admin)/layout.tsx
@@ -1,5 +1,6 @@
"use client";
+import { SkipToContent } from "@/components/skip-to-content";
import Link from "next/link";
import { HelpCircle, Search } from "lucide-react";
import { useLanguage } from "@/components/language-provider";
@@ -52,6 +53,7 @@ export default function DashboardLayout({
<ComposeProvider>
<ShortcutsProvider>
<div className="grid h-dvh grid-cols-[minmax(0,1fr)] md:grid-cols-[var(--sidebar-width)_minmax(0,1fr)] overflow-hidden bg-[#f6f8fc] transition-[grid-template-columns]" style={{ transitionDuration: "var(--sidebar-transition-duration)" }}>
+ <SkipToContent />
<SidebarAside>
<div className="h-full">
<AdminNav />
@@ -64,7 +66,7 @@ export default function DashboardLayout({
<LicenseIndicator />
<MailboxSelector />
</span>
- <main className={clsx("page-flush min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain rounded-tl-3xl max-md:rounded-t-3xl max-md:bg-white max-md:pb-24 px-6 py-10 scrollbar-gutter-stable lg:px-12", mobileTitle && "max-md:[&_h1]:hidden")}>
+ <main id="main-content" tabIndex={-1} className={clsx("focus:outline-none page-flush min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain rounded-tl-3xl max-md:rounded-t-3xl max-md:bg-white max-md:pb-24 px-6 py-10 scrollbar-gutter-stable lg:px-12", mobileTitle && "max-md:[&_h1]:hidden")}>
<div className="w-full max-w-3xl">{children}</div>
</main>
</div>
diff --git a/src/app/(calendar)/layout.tsx b/src/app/(calendar)/layout.tsx
index 7fc5cf7..b7664d1 100644
--- a/src/app/(calendar)/layout.tsx
+++ b/src/app/(calendar)/layout.tsx
@@ -1,5 +1,6 @@
"use client";
+import { SkipToContent } from "@/components/skip-to-content";
import { useEffect } from "react";
import Link from "next/link";
import { usePathname, useRouter } from "next/navigation";
@@ -47,6 +48,7 @@ export default function CalendarLayout({ children }: { children: React.ReactNode
<MailSearchProvider>
<ShortcutsProvider>
<div className="grid h-dvh grid-cols-[minmax(0,1fr)] overflow-hidden bg-[#f6f8fc]">
+ <SkipToContent />
<SidebarAside className="md:hidden"><CalendarMobileUpcoming /></SidebarAside>
<div className="flex min-h-0 min-w-0 flex-col">
<header className="flex h-16 w-full shrink-0 items-center gap-3 pr-4 text-sm max-md:h-auto max-md:flex-wrap max-md:gap-x-2 max-md:gap-y-2 max-md:pb-2 max-md:pr-2 max-md:pt-1">
@@ -66,7 +68,7 @@ export default function CalendarLayout({ children }: { children: React.ReactNode
</header>
<div className="flex min-h-0 min-w-0 flex-1 overflow-hidden">
<AssistantOpenContext.Provider value={assistantVisible}>
- <main className="min-h-0 min-w-0 flex-1 overflow-hidden bg-[#f6f8fc] overscroll-contain scrollbar-gutter-stable" aria-hidden={assistantVisible && assistantFullSize} inert={assistantVisible && assistantFullSize}>
+ <main id="main-content" tabIndex={-1} className="focus:outline-none min-h-0 min-w-0 flex-1 overflow-hidden bg-[#f6f8fc] overscroll-contain scrollbar-gutter-stable" aria-hidden={assistantVisible && assistantFullSize} inert={assistantVisible && assistantFullSize}>
<div key={pathname} className="page-transition-enter h-full min-h-0">{children}</div>
</main>
</AssistantOpenContext.Provider>
diff --git a/src/app/(dashboard)/layout.tsx b/src/app/(dashboard)/layout.tsx
index be46b7e..5dc79b8 100644
--- a/src/app/(dashboard)/layout.tsx
+++ b/src/app/(dashboard)/layout.tsx
@@ -1,5 +1,6 @@
"use client";
+import { SkipToContent } from "@/components/skip-to-content";
import { useEffect } from "react";
import { Sparkles } from "lucide-react";
import { useLanguage } from "@/components/language-provider";
@@ -48,6 +49,7 @@ export default function DashboardLayout({
<MailSearchProvider>
<ShortcutsProvider>
<div className="grid h-dvh grid-cols-[minmax(0,1fr)] overflow-hidden bg-[#f6f8fc] transition-[grid-template-columns] md:grid-cols-[var(--sidebar-width)_minmax(0,1fr)]" style={{ transitionDuration: "var(--sidebar-transition-duration)" }}>
+ <SkipToContent />
<SidebarAside>
<div className="h-full">
<DashboardNav />
@@ -71,7 +73,7 @@ export default function DashboardLayout({
</header>
<div className="flex min-h-0 min-w-0 flex-1 overflow-hidden">
<AssistantOpenContext.Provider value={assistantVisible}>
- <main className="min-h-0 min-w-0 flex-1 overflow-y-auto rounded-t-3xl bg-white overscroll-contain scrollbar-gutter-stable" aria-hidden={assistantVisible && assistantFullSize} inert={assistantVisible && assistantFullSize}>
+ <main id="main-content" tabIndex={-1} className="focus:outline-none min-h-0 min-w-0 flex-1 overflow-y-auto rounded-t-3xl bg-white overscroll-contain scrollbar-gutter-stable" aria-hidden={assistantVisible && assistantFullSize} inert={assistantVisible && assistantFullSize}>
{children}
</main>
</AssistantOpenContext.Provider>
diff --git a/src/app/(drive)/layout.tsx b/src/app/(drive)/layout.tsx
index 3b4dafa..c43dd42 100644
--- a/src/app/(drive)/layout.tsx
+++ b/src/app/(drive)/layout.tsx
@@ -1,5 +1,6 @@
"use client";
+import { SkipToContent } from "@/components/skip-to-content";
import { Suspense } from "react";
import { AuthGuard } from "@/components/auth/auth-guard";
import { ComposeProvider } from "@/components/compose/compose-context";
@@ -19,6 +20,7 @@ function DriveFrame({ children }: { children: React.ReactNode }) {
// Same grid and sidebar width as the dashboard, so the menu and the search line up and resizing carries over.
return (
<div className="grid h-dvh grid-cols-[minmax(0,1fr)] overflow-hidden bg-[#f6f8fc] transition-[grid-template-columns] md:grid-cols-[var(--sidebar-width)_minmax(0,1fr)]" style={{ transitionDuration: "var(--sidebar-transition-duration)" }}>
+ <SkipToContent />
<SidebarAside>
<div className="flex h-full min-h-0 flex-col">
<div className="shrink-0 px-3 pt-4"><SidebarHeader href="/inbox" /></div>
@@ -33,7 +35,7 @@ function DriveFrame({ children }: { children: React.ReactNode }) {
<LicenseIndicator />
<MailboxSelector />
</header>
- <main className="min-h-0 min-w-0 flex-1 overflow-hidden md:pr-4">{children}</main>
+ <main id="main-content" tabIndex={-1} className="focus:outline-none min-h-0 min-w-0 flex-1 overflow-hidden md:pr-4">{children}</main>
</div>
</div>
);
diff --git a/src/app/(settings)/layout.tsx b/src/app/(settings)/layout.tsx
index 7dc6fe6..8418509 100644
--- a/src/app/(settings)/layout.tsx
+++ b/src/app/(settings)/layout.tsx
@@ -1,5 +1,6 @@
"use client";
+import { SkipToContent } from "@/components/skip-to-content";
import Link from "next/link";
import { HelpCircle } from "lucide-react";
import { AuthGuard } from "@/components/auth/auth-guard";
@@ -28,6 +29,7 @@ export default function DashboardLayout({
<MailSearchProvider>
<ShortcutsProvider>
<div className="grid h-[100dvh] grid-cols-[minmax(0,1fr)] md:grid-cols-[var(--sidebar-width)_minmax(0,1fr)] overflow-hidden bg-[#f6f8fc] transition-[grid-template-columns]" style={{ transitionDuration: "var(--sidebar-transition-duration)" }}>
+ <SkipToContent />
<SidebarAside>
<DashboardNav />
</SidebarAside>
@@ -44,7 +46,7 @@ export default function DashboardLayout({
<LicenseIndicator />
<MailboxSelector />
</header>
- <main className="page-flush min-h-0 flex-1 overflow-y-auto max-md:rounded-t-3xl max-md:bg-white overscroll-contain scrollbar-gutter-stable">
+ <main id="main-content" tabIndex={-1} className="focus:outline-none page-flush min-h-0 flex-1 overflow-y-auto max-md:rounded-t-3xl max-md:bg-white overscroll-contain scrollbar-gutter-stable">
{children}
</main>
</div>
diff --git a/src/components/messages/message-folder-page.tsx b/src/components/messages/message-folder-page.tsx
index 9a96284..1d976d8 100644
--- a/src/components/messages/message-folder-page.tsx
+++ b/src/components/messages/message-folder-page.tsx
@@ -121,6 +121,7 @@ function MessageListRow({
if (compact) {
const compactRow = (
<div
+ role={swipeable ? undefined : "listitem"}
className={`group grid grid-cols-[20px_minmax(0,1fr)] gap-3 border-l-2 px-4 py-3 transition-colors ${active
? "border-l-blue-600 bg-blue-50"
: selected
@@ -140,9 +141,10 @@ function MessageListRow({
className="mt-1 h-4 w-4 rounded border-neutral-300"
aria-label={t("list.selectFrom", { sender: party })}
/>
- <Link href={href} onClick={config.folder === "drafts" ? undefined : onMessageNavigate} className="min-w-0">
+ <Link href={href} onClick={config.folder === "drafts" ? undefined : onMessageNavigate} aria-current={active ? "true" : undefined} className="min-w-0">
<span className="flex items-baseline justify-between gap-3">
<span className={clsx(unread && "font-semibold",getMessagePartyClassName(rowMessage, config.folder))}>
+ {unread && <span className="sr-only">{t("list.unread")} </span>}
{party}
{(message.threadCount ?? 1) > 1 && (
@@ -168,6 +170,7 @@ function MessageListRow({
if (!swipeable) return compactRow;
return (
<SwipeableRow
+ role="listitem"
startAction={{
label: read ? t("list.markUnread") : t("list.markRead"),
icon: read ? Mail : MailOpen,
@@ -187,7 +190,7 @@ function MessageListRow({
}
const className =
- `group relative grid min-h-12 w-full grid-cols-[24px_32px_minmax(160px,80px)_1fr_auto] items-center gap-3 px-6 text-left text-sm hover:z-10 hover:bg-[#f2f6fc] hover:shadow-sm ${active || selected ? "bg-blue-50" : ""
+ `group relative grid min-h-12 w-full grid-cols-[24px_32px_minmax(160px,80px)_1fr_auto] items-center gap-3 px-6 text-left text-sm hover:z-10 hover:bg-[#f2f6fc] hover:shadow-sm has-[a:focus-visible]:ring-2 has-[a:focus-visible]:ring-inset has-[a:focus-visible]:ring-blue-600 ${active || selected ? "bg-blue-50" : ""
} ${draggable ? "cursor-grab active:cursor-grabbing" : ""}`;
const content = (
<>
@@ -197,12 +200,12 @@ function MessageListRow({
type="button"
variant="ghost"
size="sm"
- onClick={(event) => {
- event.preventDefault();
- event.stopPropagation();
+ className="relative z-10"
+ onClick={() => {
void toggleMessageStar(message.id).then((result) => setStarred(result.starred));
}}
- aria-label={starred ? t("list.starred") : t("list.notStarred")}
+ aria-label={t("message.star")}
+ aria-pressed={starred}
>
<Icon className={`h-4 w-4 ${starred ? "fill-amber-400 text-amber-400" : "text-neutral-300"}`} />
</Button>
@@ -212,6 +215,7 @@ function MessageListRow({
<Icon className="h-4 w-4 text-neutral-300" />
)}
<span className={clsx(unread && "font-semibold", getMessagePartyClassName(rowMessage, config.folder))}>
+ {unread && <span className="sr-only">{t("list.unread")} </span>}
{party}
{(message.threadCount ?? 1) > 1 && (
@@ -219,10 +223,17 @@ function MessageListRow({
)}
</span>
<span className="truncate text-neutral-700">
- <span className={unread ? "font-semibold text-neutral-900" : ""}>
- {rowMessage.subject ?? t("list.noSubject")}
- </span>
- <span className="text-neutral-500"> - {getMessagePreview(rowMessage, config.folder, t)}</span>
+ <Link
+ href={href}
+ onClick={config.folder === "drafts" ? undefined : onMessageNavigate}
+ aria-current={active ? "true" : undefined}
+ className="focus-visible:outline-none after:absolute after:inset-0"
+ >
+ <span className={unread ? "font-semibold text-neutral-900" : ""}>
+ {rowMessage.subject ?? t("list.noSubject")}
+ </span>
+ <span className="text-neutral-500"> - {getMessagePreview(rowMessage, config.folder, t)}</span>
+ </Link>
</span>
<time
dateTime={message.createdAt}
@@ -236,22 +247,21 @@ function MessageListRow({
if (config.folder === "drafts") {
return (
- <div className={className}>
+ <div role="listitem" className={className}>
<Checkbox
checked={selected}
onChange={(event) => onSelectedChange(message.id, event.target.checked)}
- className="h-4 w-4 rounded border-neutral-300"
+ className="relative z-10 h-4 w-4 rounded border-neutral-300"
aria-label={t("list.selectMessage")}
/>
- <Link href={href} className="contents text-left">
- {content}
- </Link>
+ {content}
</div>
);
}
return (
<div
+ role="listitem"
className={className}
draggable={draggable}
onDragStart={(event) => {
@@ -263,12 +273,10 @@ function MessageListRow({
<Checkbox
checked={selected}
onChange={(event) => onSelectedChange(message.id, event.target.checked)}
- className="h-4 w-4 rounded border-neutral-300"
- aria-label={t("list.selectMessage")}
+ className="relative z-10 h-4 w-4 rounded border-neutral-300"
+ aria-label={t("list.selectFrom", { sender: party })}
/>
- <Link href={href} onClick={onMessageNavigate} className="contents">
- {content}
- </Link>
+ {content}
{(config.folder === "inbox" || config.folder === "snoozed") && message.direction === "inbound" && (
<MessageListRowActions
message={rowMessage}
@@ -570,27 +578,29 @@ export function MessageFolderPage({
</p>
)}
- <div className="min-h-0 flex-1 divide-y divide-neutral-100 overflow-y-auto overscroll-contain scrollbar-gutter-stable">
- {messages.map((message) => (
- <MessageListRow
- key={message.id}
- message={message}
- config={config}
- selected={selectedIds.includes(message.id)}
- active={message.id === selectedMessageId}
- compact={compact || isMobile}
- currentAccountName={currentAccountName}
- onSelectedChange={updateSelectedMessage}
- onMessageAction={(messageId, action) => {
- setActionError(null);
- return runBulkMessageAction(expandSelectedIds([messageId]), action, action !== "read" && action !== "unread").catch((error) => {
- setActionError(t("actions.error.update"));
- throw error;
- });
- }}
- dragMessageIds={expandSelectedIds(selectedIds.includes(message.id) ? selectedIds : [message.id])}
- />
- ))}
+ <div className="min-h-0 flex-1 overflow-y-auto overscroll-contain scrollbar-gutter-stable">
+ <div role="list" aria-label={title} className="divide-y divide-neutral-100">
+ {messages.map((message) => (
+ <MessageListRow
+ key={message.id}
+ message={message}
+ config={config}
+ selected={selectedIds.includes(message.id)}
+ active={message.id === selectedMessageId}
+ compact={compact || isMobile}
+ currentAccountName={currentAccountName}
+ onSelectedChange={updateSelectedMessage}
+ onMessageAction={(messageId, action) => {
+ setActionError(null);
+ return runBulkMessageAction(expandSelectedIds([messageId]), action, action !== "read" && action !== "unread").catch((error) => {
+ setActionError(t("actions.error.update"));
+ throw error;
+ });
+ }}
+ dragMessageIds={expandSelectedIds(selectedIds.includes(message.id) ? selectedIds : [message.id])}
+ />
+ ))}
+ </div>
{!isLoading && messages.length === 0 && (
<p className="px-6 py-4 text-sm text-neutral-500">
{hasActiveFilters ? t("list.noMatch") : config.emptyTextKey ? t(config.emptyTextKey) : config.emptyText}
diff --git a/src/components/messages/swipeable-row.tsx b/src/components/messages/swipeable-row.tsx
index 8029027..6a6f408 100644
--- a/src/components/messages/swipeable-row.tsx
+++ b/src/components/messages/swipeable-row.tsx
@@ -18,13 +18,14 @@ type SwipeableRowProps = {
// Revealed when dragging right to left.
endAction: SwipeAction;
disabled?: boolean;
+ role?: string;
};
const COMMIT_DISTANCE = 88;
const INTENT_DISTANCE = 10;
// Touch-only swipe gestures; vertical scrolling stays with the browser via touch-action: pan-y.
-export function SwipeableRow({ children, startAction, endAction, disabled }: SwipeableRowProps) {
+export function SwipeableRow({ children, startAction, endAction, disabled, role }: SwipeableRowProps) {
const [offset, setOffset] = useState(0);
const [dragging, setDragging] = useState(false);
const gesture = useRef<{ x: number; y: number; active: boolean; id: number } | null>(null);
@@ -74,7 +75,7 @@ export function SwipeableRow({ children, startAction, endAction, disabled }: Swi
const armed = Math.abs(offset) >= COMMIT_DISTANCE;
return (
- <div className="relative overflow-hidden">
+ <div role={role} className="relative overflow-hidden">
{action && Icon && (
<div
aria-hidden="true"
diff --git a/src/components/skip-to-content.tsx b/src/components/skip-to-content.tsx
new file mode 100644
index 0000000..7229108
--- /dev/null
+++ b/src/components/skip-to-content.tsx
@@ -0,0 +1,15 @@
+"use client";
+
+import { useLanguage } from "@/components/language-provider";
+
+export function SkipToContent() {
+ const { t } = useLanguage();
+ return (
+ <a
+ href="#main-content"
+ className="sr-only focus:not-sr-only focus:fixed focus:left-3 focus:top-3 focus:z-[100] focus:rounded-full focus:bg-white focus:px-4 focus:py-2 focus:text-sm focus:font-medium focus:text-blue-700 focus:shadow-lg focus:ring-2 focus:ring-blue-600"
+ >
+ {t("a11y.skipToContent")}
+ </a>
+ );
+}
diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json
index d94a2d8..6c7f3b9 100644
--- a/src/lib/i18n/en.json
+++ b/src/lib/i18n/en.json
@@ -149,6 +149,7 @@
"list.notStarred": "Not starred",
"list.selectFrom": "Select message from {sender}",
"list.selectMessage": "Select message",
+ "list.unread": "Unread",
"list.selectAll": "Select all visible messages",
"list.range": "{start} - {end} of {total}",
"list.previousPage": "Previous page",
@@ -309,6 +310,7 @@
"account.signOut": "Sign out",
"account.profilePicture": "{name} profile picture",
"nav.loading": "Loading",
+ "a11y.skipToContent": "Skip to main content",
"admin.nav.overview": "Overview",
"admin.nav.email": "Email",
"admin.nav.mailboxes": "Mailboxes",