forked from microsoft/rushstack-websites
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing aria-pressed attribute on 'toggle word wrap' button (micr…
- Loading branch information
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
common/pnpm-patches/@docusaurus__theme-classic@2.3.1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/lib/theme/CodeBlock/WordWrapButton/index.js b/lib/theme/CodeBlock/WordWrapButton/index.js | ||
index 58330cd3ab8ac9bc43d9ac80fb8aa211d188ea0e..d8e1f76420f0d54085817dcd1af252aa58e43ebb 100644 | ||
--- a/lib/theme/CodeBlock/WordWrapButton/index.js | ||
+++ b/lib/theme/CodeBlock/WordWrapButton/index.js | ||
@@ -25,6 +25,7 @@ export default function WordWrapButton({className, onClick, isEnabled}) { | ||
isEnabled && styles.wordWrapButtonEnabled, | ||
)} | ||
aria-label={title} | ||
+ aria-pressed={isEnabled} | ||
title={title}> | ||
<svg | ||
className={styles.wordWrapButtonIcon} |