From 13c2413f40a9a475227938742dfdeef5f47ae062 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:55:00 +0000 Subject: [PATCH 1/2] Initial plan From fb28f76e54e5c06883442a9f59b11405d8749f07 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:57:12 +0000 Subject: [PATCH 2/2] fix: announce updated font size value to screen reader on increase/decrease When users click the increase or decrease font size buttons in Article mode, the screen reader now announces the updated font size value (e.g. "Font size increased to 18" or "Font size decreased to 14") instead of the generic static labels. Two new localized template strings are added: WebClipper.Accessibility.ScreenReader.FontSizeIncreasedTo WebClipper.Accessibility.ScreenReader.FontSizeDecreasedTo The {0} placeholder is replaced with the current articleFontSize value at announcement time, matching the pattern used by other dynamic announcements in the codebase (e.g. pdfPageProgress). --- src/scripts/renderer.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scripts/renderer.ts b/src/scripts/renderer.ts index 8f0f468c..f7687516 100644 --- a/src/scripts/renderer.ts +++ b/src/scripts/renderer.ts @@ -257,6 +257,8 @@ let strings = { changeFontSerif: loc("WebClipper.Accessibility.ScreenReader.ChangeFontToSerif", "Change font to Serif"), decreaseFontSize: loc("WebClipper.Accessibility.ScreenReader.DecreaseFontSize", "Decrease font size"), increaseFontSize: loc("WebClipper.Accessibility.ScreenReader.IncreaseFontSize", "Increase font size"), + fontSizeDecreasedTo: loc("WebClipper.Accessibility.ScreenReader.FontSizeDecreasedTo", "Font size decreased to {0}"), + fontSizeIncreasedTo: loc("WebClipper.Accessibility.ScreenReader.FontSizeIncreasedTo", "Font size increased to {0}"), sansSerifLabel: loc("WebClipper.Preview.Header.SansSerifButtonLabel", "Sans-serif"), serifLabel: loc("WebClipper.Preview.Header.SerifButtonLabel", "Serif"), fontFamilySerif: loc("WebClipper.FontFamily.Preview.SerifDefault", "Georgia"), @@ -1525,13 +1527,13 @@ fontDecreaseBtn.addEventListener("click", () => { if (articleFontSize <= 8) { return; } articleFontSize -= 2; applyArticleFontSize(); - announceToScreenReader(strings.decreaseFontSize); + announceToScreenReader(strings.fontSizeDecreasedTo.replace("{0}", "" + articleFontSize)); }); fontIncreaseBtn.addEventListener("click", () => { if (articleFontSize >= 72) { return; } articleFontSize += 2; applyArticleFontSize(); - announceToScreenReader(strings.increaseFontSize); + announceToScreenReader(strings.fontSizeIncreasedTo.replace("{0}", "" + articleFontSize)); }); // Highlighter toggle