Merge pull request #15307 from calixteman/role_comment

[Annotation] Add an aria role comment for FreeText annotations
This commit is contained in:
calixteman 2022-08-12 16:22:37 +02:00 committed by GitHub
commit 3cf31a8b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;