fix(a11y): name every control by the text it shows

axe 4.14 checks WCAG 2.5.3 (label in name), and the app frame failed it
on every page: the account link, the user menu and the day strip carried
an aria-label that left out their visible text. The same class sat in
the coverage meter, the score ring, medication links, instrument cards,
filter pills with a value set, cycle calendar days (named by an ISO
key), admin user and login rows, a few sort and action buttons, and the
French, Spanish, Italian and Polish weekday chips, whose abbreviations
were not part of the day names.

Controls with visible text are now named by it, with any extra purpose
added as screen-reader text; the select pill and calendar days spell
out a name that contains what they show. The day and conversation
strips keep their action as the tooltip.
This commit is contained in:
Marc-André Bombeck committed 2026-10-22 20:25:48 +02:00
1 parent 038f8b10cd
commit 562ff8a277
36 files changed
+134 -97

No files matched your search

-1
View File
@@ -11908,7 +11908,6 @@
},
"chat": {
"title": "Über dieses Dokument chatten",
"openAria": "Coach über dieses Dokument fragen",
"openButton": "Coach fragen"
},
"readingConsent": {
-1
View File
@@ -11960,7 +11960,6 @@
},
"chat": {
"title": "Chat about this document",
"openAria": "Ask the Coach about this document",
"openButton": "Ask the Coach"
},
"readingConsent": {
+3 -4
View File
@@ -1556,12 +1556,12 @@
"weekdays": {
"label": "Días de la semana",
"short": {
"mo": "Mo",
"mo": "Lu",
"tu": "Ma",
"we": "Mi",
"th": "Ju",
"fr": "Fr",
"sa": "Sa",
"fr": "Vi",
"sa": "Sá",
"su": "Do"
},
"long": {
@@ -11908,7 +11908,6 @@
},
"chat": {
"title": "Chatea sobre este documento",
"openAria": "Pregunta al Coach sobre este documento",
"openButton": "Preguntar al Coach"
},
"readingConsent": {
+2 -3
View File
@@ -1556,11 +1556,11 @@
"weekdays": {
"label": "Jours de la semaine",
"short": {
"mo": "Mo",
"mo": "Lu",
"tu": "Ma",
"we": "Me",
"th": "Je",
"fr": "Fr",
"fr": "Ve",
"sa": "Sa",
"su": "Di"
},
@@ -11881,7 +11881,6 @@
},
"chat": {
"title": "Discuter de ce document",
"openAria": "Interroger le Coach sur ce document",
"openButton": "Demander au Coach"
},
"readingConsent": {
+2 -3
View File
@@ -1556,11 +1556,11 @@
"weekdays": {
"label": "Giorni della settimana",
"short": {
"mo": "Mo",
"mo": "Lu",
"tu": "Ma",
"we": "Me",
"th": "Gi",
"fr": "Fr",
"fr": "Ve",
"sa": "Sa",
"su": "Do"
},
@@ -11908,7 +11908,6 @@
},
"chat": {
"title": "Chatta su questo documento",
"openAria": "Chiedi al Coach su questo documento",
"openButton": "Chiedi al Coach"
},
"readingConsent": {
-1
View File
@@ -11841,7 +11841,6 @@
},
"chat": {
"title": "이 문서에 대해 대화",
"openAria": "이 문서에 대해 코치에게 묻기",
"openButton": "코치에게 묻기"
},
"readingConsent": {
-1
View File
@@ -11841,7 +11841,6 @@
},
"chat": {
"title": "Chatten over dit document",
"openAria": "De Coach een vraag stellen over dit document",
"openButton": "Vraag het de Coach"
},
"readingConsent": {
+7 -8
View File
@@ -1556,13 +1556,13 @@
"weekdays": {
"label": "Dni tygodnia",
"short": {
"mo": "Mo",
"tu": "Wt",
"we": "Śr",
"th": "Cz",
"fr": "Fr",
"sa": "Sa",
"su": "Nd"
"mo": "Pon",
"tu": "Wto",
"we": "Śro",
"th": "Czw",
"fr": "Pią",
"sa": "Sob",
"su": "Nie"
},
"long": {
"mo": "Poniedziałek",
@@ -11908,7 +11908,6 @@
},
"chat": {
"title": "Porozmawiaj o tym dokumencie",
"openAria": "Zapytaj Coacha o ten dokument",
"openButton": "Zapytaj Coacha"
},
"readingConsent": {
-1
View File
@@ -11841,7 +11841,6 @@
},
"chat": {
"title": "Conversar sobre este documento",
"openAria": "Perguntar ao Coach sobre este documento",
"openButton": "Perguntar ao Coach"
},
"readingConsent": {