diff --git a/frontend/src/ts/test/result.ts b/frontend/src/ts/test/result.ts index dda8d6d66..8a5a90253 100644 --- a/frontend/src/ts/test/result.ts +++ b/frontend/src/ts/test/result.ts @@ -255,7 +255,14 @@ function updateWpmAndAcc(): void { } $("#result .stats .time .bottom .text").text(time); $("#result .stats .raw .bottom").removeAttr("aria-label"); - $("#result .stats .acc .bottom").removeAttr("aria-label"); + // $("#result .stats .acc .bottom").removeAttr("aria-label"); + + $("#result .stats .acc .bottom").attr( + "aria-label", + `${TestInput.accuracy.incorrect} mistake${ + TestInput.accuracy.incorrect == 1 ? "" : "s" + }` + ); } else { //not showing decimal places if (Config.alwaysShowCPM == false) { @@ -287,7 +294,12 @@ function updateWpmAndAcc(): void { } $("#result .stats .acc .bottom").text(Math.floor(result.acc) + "%"); - $("#result .stats .acc .bottom").attr("aria-label", result.acc + "%"); + $("#result .stats .acc .bottom").attr( + "aria-label", + `${result.acc}% (${TestInput.accuracy.incorrect} mistake${ + TestInput.accuracy.incorrect == 1 ? "" : "s" + })` + ); } }