Skip to content

Commit 2bb9080

Browse files
committed
Merged PR 16264: Add title to Iframe
Add title to Iframe to fix Accessibility bug
1 parent 9913efb commit 2bb9080

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/embed.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,20 @@ export abstract class Embed {
569569
}
570570
}
571571

572+
/**
573+
* Sets Iframe's title
574+
*/
575+
setComponentTitle(title: string): void {
576+
if(!this.iframe) {
577+
return;
578+
}
579+
if(title == null) {
580+
this.iframe.removeAttribute("title");
581+
} else {
582+
this.iframe.setAttribute("title", title);
583+
}
584+
}
585+
572586
/**
573587
* Adds the ability to get groupId from url.
574588
* By extracting the ID we can ensure that the ID is always explicitly provided as part of the load configuration.

0 commit comments

Comments
 (0)