Repository navigation
Closed
Description
Summary
Four shared icons in packages/ui/src/icons/ carry a hard-coded English aria-label on their <svg>: Website icon, Locale icon, Enter key icon and Shopify icon. Screen readers announce those English words in every UI language. Two of the icons are rendered:
- Contacts table, language column: the header is the icon alone, so the column's accessible name is "Locale icon" in en, de and fr. It describes the picture, not the column ("Language").
- Chat composer, the "Enter to send" hint: the hint reads "Enter key icon to send". In German it's "Enter key icon zum Senden", and in French the English icon name likewise precedes the French text.
Icon (packages/ui/src/icons/) |
aria-label |
Rendered at (main) |
|---|---|---|
locale-icon.tsx:8 |
Locale icon | packages/ui/src/components/data-table/column-builders.tsx:273: the only content of the locale column header, built by createLocaleColumn(), which the contacts table uses (services/platform/app/features/contacts/hooks/use-contacts-table-config.tsx:131) |
enter-key-icon.tsx:9 |
Enter key icon | services/platform/app/features/chat/components/composer.tsx:519, next to dialogs.toSend ("to send" / "zum Senden") in the composer's placeholder overlay |
website-icon.tsx:8, shopify-icon.tsx:9 |
Website icon, Shopify icon | no platform usage found at main |
Why nothing catches it
- The catalog checks only see
t()keys. services/platform/.oxlintrc.jsonhas no rule against literal accessible names.- A sweep of the platform app at
mainfound no other literal UI labels besides i18n(platform): Governance Model access and Default models show hard-coded English scope, mode and role names in German and French #4455's governance option arrays. It covered the 305 files changed since 2026-10-04 atmain, plus the unchanged rest. These icons are the remaining instances inpackages/ui.
Source and environment
mainat5b6ab36bb3ed00bed28bb9f4e79d082c3f1144b0.- Catalogs:
services/platform/messages/{en,de}/dialogs.yml(toSend).
Expected and observed
- Expected:
- a decorative icon next to text is hidden from assistive technology (
aria-hidden="true", no label); - an icon that is the only content of a control or header gets a translated name, such as the column's "Language" label from the catalogs.
- a decorative icon next to text is hidden from assistive technology (
- Observed: English, picture-describing names in every locale, and an icon-only column header named "Locale icon".
Severity
Low (A11Y, LOCALE). Sighted use is unaffected. Screen-reader users hear English words, and a column header that doesn't name its content.
Acceptance checks
- The four icons have no hard-coded
aria-label. They arearia-hiddenby default and take an optional translated label prop where a caller needs one. - The contacts table's language column header has a translated accessible name, for example a visually hidden catalog label or
aria-label={t(…)}. - A test pins both. For example, a jsdom test renders the contacts table header and the composer hint in
deand asserts the accessible names; or a lint rule flags literalaria-labelstrings in.tsx.
Limits
- Static: source and catalogs at
main; not checked with a screen reader. - Composer hint: the overlay sits over the input with
pointer-events-none, and whether a given screen reader reads it while the input is focused wasn't observed.
Found by TALE-358 Review A (product and experience: A11Y, LOCALE), occurrence 2026-10-07 00:15 Europe/Zurich, run 8a61f6e5-8a6c-4fdd-80e0-74b69506c5c8.
Metadata
Metadata
Assignees
Labels
No labels
Activity
yannickmonney commentedon Oct 7, 2026
Post-merge recheck (TALE-358 Review A, run
a2134554; static plus CI, no screen reader): fixed by #4468 (b990a566a).aria-hidden="true", noaria-label). They take an optionallabelprop when a caller needs a name.tables:headers.locale= Language / Sprache / Langue.aria-hidden, and a visually hiddendialogs.enterToSendreads Enter to send / Enter zum Senden / Entrée pour envoyer.decorative-icons.test.tsx(4) andcolumn-builders.test.tsx(1) in Unit (workspaces);use-contacts-table-config.a11y.test.tsx(1) andcomposer.test.tsx(60) in UI shard 3/4.