Skip to content

Commit

Permalink
Merge pull request #15307 from calixteman/role_comment
Browse files Browse the repository at this point in the history
[Annotation] Add an aria role comment for FreeText annotations
  • Loading branch information
calixteman authored Aug 12, 2022
2 parents 6b4c246 + 2916910 commit 3cf31a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display/annotation_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3cf31a8

Please sign in to comment.