Skip to content

Commit 2916910

Browse files
committed
[Annotation] Add an aria role comment for FreeText annotations
1 parent 6b4c246 commit 2916910

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/display/annotation_layer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,6 +1944,7 @@ class FreeTextAnnotationElement extends AnnotationElement {
19441944
if (this.textContent) {
19451945
const content = document.createElement("div");
19461946
content.className = "annotationTextContent";
1947+
content.setAttribute("role", "comment");
19471948
for (const line of this.textContent) {
19481949
const lineSpan = document.createElement("span");
19491950
lineSpan.textContent = line;

0 commit comments

Comments
 (0)