Skip to content

Commit 3cf31a8

Browse files
authored
Merge pull request #15307 from calixteman/role_comment
[Annotation] Add an aria role comment for FreeText annotations
2 parents 6b4c246 + 2916910 commit 3cf31a8

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)