From 2916910ea1a638b36ee97fa0081a49046e7dc93b Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 12 Aug 2022 15:59:21 +0200 Subject: [PATCH] [Annotation] Add an aria role comment for FreeText annotations --- src/display/annotation_layer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index db9969fed..1e272ac89 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -1944,6 +1944,7 @@ class FreeTextAnnotationElement extends AnnotationElement { if (this.textContent) { const content = document.createElement("div"); content.className = "annotationTextContent"; + content.setAttribute("role", "comment"); for (const line of this.textContent) { const lineSpan = document.createElement("span"); lineSpan.textContent = line;