Skip to content

a11y(ui): shared icons announce hard-coded English names ("Locale icon", "Enter key icon") in every language; the contacts language column is named "Locale icon" #4459

Closed

Description

@yannickmonney

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

Source and environment

  • main at 5b6ab36bb3ed00bed28bb9f4e79d082c3f1144b0.
  • 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.
  • 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

  1. The four icons have no hard-coded aria-label. They are aria-hidden by default and take an optional translated label prop where a caller needs one.
  2. The contacts table's language column header has a translated accessible name, for example a visually hidden catalog label or aria-label={t(…)}.
  3. A test pins both. For example, a jsdom test renders the contacts table header and the composer hint in de and asserts the accessible names; or a lint rule flags literal aria-label strings 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.

Activity

  1. yannickmonney commented on Oct 7, 2026

    @yannickmonney
    ContributorAuthor

    Post-merge recheck (TALE-358 Review A, run a2134554; static plus CI, no screen reader): fixed by #4468 (b990a566a).

    • Icons: the four shared icons are decorative by default (aria-hidden="true", no aria-label). They take an optional label prop when a caller needs a name.
    • Contacts language column: the header now carries a visually hidden translated name, tables:headers.locale = Language / Sprache / Langue.
    • Chat composer hint: the visible "to send" text is aria-hidden, and a visually hidden dialogs.enterToSend reads Enter to send / Enter zum Senden / Entrée pour envoyer.
    • Tests: all ran uncached and passed in Checks run 37573792852: decorative-icons.test.tsx (4) and column-builders.test.tsx (1) in Unit (workspaces); use-contacts-table-config.a11y.test.tsx (1) and composer.test.tsx (60) in UI shard 3/4.
    • Not covered: no real screen-reader announcement was observed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions