From 3ec88a7800f9112852095eec037bf7fb8464eb2a Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 11 May 2026 06:37:26 +0200 Subject: [PATCH] a11y: aria-label on the 3 icon-only buttons in the main shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three icon-only buttons in the always-visible UI had no programmatic accessible name: - the "+" add-streamer button (no id, no title, no aria-label — entire button was unnamed) - the bulk-remove X button next to the Streamer section title (had a localized title, but title is not a reliable accessible-name source — many screen readers don't expose it) - the VOD-filter clear X button above the VOD grid (same — title-only) For all three the visible text is just a glyph ("+", "x"), so the accessible name has to come from somewhere else. Added: - new locale key static.streamerAddAriaLabel ("Streamer hinzufuegen" / "Add streamer") and an id on the "+" button so renderer-texts can localize it - new setAriaLabel(id, value) helper in renderer-texts mirroring the existing setTitle/setPlaceholder pattern - aria-label calls for all three buttons, in addition to the existing title (so the tooltip stays for sighted users) The two existing X buttons reuse their existing title strings as aria-label — no new translation work, just exposing the already-present text via the right ARIA attribute. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.html | 2 +- src/renderer-locale-de.ts | 1 + src/renderer-locale-en.ts | 1 + src/renderer-texts.ts | 9 +++++++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 37ebaed..00a7e96 100644 --- a/src/index.html +++ b/src/index.html @@ -248,7 +248,7 @@