[Annotation] Add an aria role comment for FreeText annotations
This commit is contained in:
parent
6b4c2464ad
commit
2916910ea1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user