1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Avoid to aria-hide the structure tree (bug 1894849)

If one ancestor of the structure tree has the attribute aria-hidden
then it's invisible for screen readers.
This commit is contained in:
Calixte Denizet 2024-05-03 14:39:37 +02:00
parent 1b811ac113
commit 7742c3eb63
2 changed files with 12 additions and 1 deletions

View file

@ -908,7 +908,6 @@ class PDFPageView {
// overflow will be hidden in Firefox.
const canvasWrapper = document.createElement("div");
canvasWrapper.classList.add("canvasWrapper");
canvasWrapper.setAttribute("aria-hidden", true);
this.#addLayer(canvasWrapper, "canvasWrapper");
if (