From 03d62a0ca1f8e6d7feb6009c4cf71366098a783a Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 07:56:17 +0200 Subject: [PATCH] fix: add aria-label to startStopBtn for screen reader accessibility (#785) Agent-Logs-Url: https://github.com/librespeed/speedtest/sessions/cfb05653-7d75-4f0d-9e9a-1765eeaa8903 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> --- examples/example-multipleServers-full.html | 5 ++++- examples/example-multipleServers-pretty.html | 4 +++- examples/example-singleServer-customSettings.html | 4 +++- examples/example-singleServer-gauges.html | 5 ++++- examples/example-singleServer-modern.html | 4 +++- examples/example-singleServer-pretty.html | 4 +++- examples/example-singleServer-progressBar.html | 4 +++- index-classic.html | 5 ++++- 8 files changed, 27 insertions(+), 8 deletions(-) diff --git a/examples/example-multipleServers-full.html b/examples/example-multipleServers-full.html index 832465e..fde216a 100755 --- a/examples/example-multipleServers-full.html +++ b/examples/example-multipleServers-full.html @@ -126,11 +126,13 @@ function startStop(){ s.abort(); data=null; I("startStopBtn").className=""; + I("startStopBtn").setAttribute("aria-label","Start"); I("server").disabled=false; initUI(); }else{ //test is not running, begin I("startStopBtn").className="running"; + I("startStopBtn").setAttribute("aria-label","Abort"); I("shareArea").style.display="none"; I("server").disabled=true; s.onupdate=function(data){ @@ -138,6 +140,7 @@ function startStop(){ }; s.onend=function(aborted){ I("startStopBtn").className=""; + I("startStopBtn").setAttribute("aria-label","Start"); I("server").disabled=false; updateUI(true); if(!aborted){ @@ -404,7 +407,7 @@ function initUI(){

Selecting a server...