From c393457492ae776109499f6ffa7fd6a15dcb55f5 Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 11 May 2026 04:36:42 +0200 Subject: [PATCH] a11y: update-banner progress bar role=progressbar + aria-valuenow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Third progress bar in this a11y pass — the download-progress bar shown in the update banner during an auto-update download. Same pattern as 4.6.64 (queue) + 4.6.65 (cut/merge): bare div with JS-driven width, no semantic role. Promoted the .update-banner-progress-track to role="progressbar" with aria-valuemin / max / now + a localized aria-label (updateProgressAria: "Update download progress" / "Update-Download- Fortschritt"). Three call sites in renderer-updates.ts that drive bar.style.width now also stamp aria-valuenow on the gauge: - onUpdateProgress event handler (per-tick percent) - setDownloadPendingUi (initial 30% indeterminate placeholder) - setDownloadReadyUi (100% on finish) renderer-texts.applyText sets the localized aria-label at boot + on language switch. That's all three application-level progress bars now AT-friendly. The same pattern would extend to any future progress UI. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.html | 2 +- src/renderer-locale-de.ts | 3 ++- src/renderer-locale-en.ts | 3 ++- src/renderer-texts.ts | 1 + src/renderer-updates.ts | 6 +++++- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/index.html b/src/index.html index 5ddb9e6..786810c 100644 --- a/src/index.html +++ b/src/index.html @@ -11,7 +11,7 @@
Neue Version verfügbar!