[Annotation] Add an aria role comment for FreeText annotations

This commit is contained in:
Calixte Denizet 2022-08-12 15:59:21 +02:00
parent 6b4c2464ad
commit 2916910ea1

View File

@ -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;