From 84f576d13104b4890228268f0d82c0a7b57906d6 Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 11 May 2026 12:01:12 +0200 Subject: [PATCH] =?UTF-8?q?a11y:=20aria-label=20on=20the=20add-streamer=20?= =?UTF-8?q?input=20=E2=80=94=20reuses=20the=20existing=20locale=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The newStreamer text input (where the user types a Twitch username to add to the streamer list) had only a placeholder ("Streamer hinzufuegen..." / "Add streamer...") as its accessible-name source. Same problem as the 3 filter/search inputs fixed in 4.6.151: placeholder text is not a reliable screen-reader name and disappears once typing starts. Wired up setAriaLabel('newStreamer', UI_TEXT.static.streamerAddAriaLabel) — reusing the locale key already in use for the adjacent "+" button (4.6.91), which means screen reader users hear "Streamer hinzufuegen" / "Add streamer" for both the input and the button that submits it. Zero new translation work, immediate a11y win. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/renderer-texts.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer-texts.ts b/src/renderer-texts.ts index 700fcf0..32faa7b 100644 --- a/src/renderer-texts.ts +++ b/src/renderer-texts.ts @@ -295,6 +295,7 @@ function applyLanguageToStaticUI(): void { setText('updateChangelogToggle', UI_TEXT.updates.showChangelog); setText('updateChangelogEmpty', UI_TEXT.updates.noChangelog); setPlaceholder('newStreamer', UI_TEXT.static.streamerPlaceholder); + setAriaLabel('newStreamer', UI_TEXT.static.streamerAddAriaLabel); setPlaceholder('vodFilterInput', UI_TEXT.vods.filterPlaceholder); setAriaLabel('vodFilterInput', UI_TEXT.vods.filterAria); setTitle('vodFilterClearBtn', UI_TEXT.vods.filterClearTitle);