mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Add a label to the highight floating button readable with NVDA (bug 1886964)
This commit is contained in:
parent
e7203f558f
commit
63c1c787b4
3 changed files with 10 additions and 2 deletions
|
@ -202,7 +202,11 @@ class HighlightToolbar {
|
|||
const button = document.createElement("button");
|
||||
button.className = "highlightButton";
|
||||
button.tabIndex = 0;
|
||||
button.setAttribute("data-l10n-id", `pdfjs-highlight-floating-button`);
|
||||
button.setAttribute("data-l10n-id", `pdfjs-highlight-floating-button1`);
|
||||
const span = document.createElement("span");
|
||||
button.append(span);
|
||||
span.className = "visuallyHidden";
|
||||
span.setAttribute("data-l10n-id", "pdfjs-highlight-floating-button-label");
|
||||
button.addEventListener("contextmenu", noContextMenu);
|
||||
button.addEventListener("click", () => {
|
||||
this.#uiManager.highlightSelection("floating_button");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue