Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/scripts/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -1532,14 +1534,14 @@ fontDecreaseBtn.addEventListener("click", () => {
articleFontSize -= 2;
applyArticleFontSize();
updateFontSizeButtonStates();
announceToScreenReader(strings.decreaseFontSize);
announceToScreenReader(strings.fontSizeDecreasedTo.replace("{0}", "" + articleFontSize));
});
fontIncreaseBtn.addEventListener("click", () => {
if (articleFontSize >= 72) { return; }
articleFontSize += 2;
applyArticleFontSize();
updateFontSizeButtonStates();
announceToScreenReader(strings.increaseFontSize);
announceToScreenReader(strings.fontSizeIncreasedTo.replace("{0}", "" + articleFontSize));
});

// Highlighter toggle
Expand Down
Loading