Merge pull request #15307 from calixteman/role_comment
[Annotation] Add an aria role comment for FreeText annotations
This commit is contained in:
commit
3cf31a8b17
@ -1944,6 +1944,7 @@ class FreeTextAnnotationElement extends AnnotationElement {
|
|||||||
if (this.textContent) {
|
if (this.textContent) {
|
||||||
const content = document.createElement("div");
|
const content = document.createElement("div");
|
||||||
content.className = "annotationTextContent";
|
content.className = "annotationTextContent";
|
||||||
|
content.setAttribute("role", "comment");
|
||||||
for (const line of this.textContent) {
|
for (const line of this.textContent) {
|
||||||
const lineSpan = document.createElement("span");
|
const lineSpan = document.createElement("span");
|
||||||
lineSpan.textContent = line;
|
lineSpan.textContent = line;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user