mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
Add accessibility information for MIAA deployment link (#16064)
* Add accessibility information for MIAA deployment link * optional
This commit is contained in:
@@ -124,6 +124,13 @@ export default class TextComponent extends TitledComponent<azdata.TextComponentP
|
||||
label: link.text,
|
||||
href: link.url
|
||||
}));
|
||||
if (link.accessibilityInformation) {
|
||||
linkElement.el.setAttribute('aria-label', link.accessibilityInformation.label);
|
||||
if (link.accessibilityInformation.role) {
|
||||
linkElement.el.setAttribute('role', link.accessibilityInformation.role);
|
||||
}
|
||||
}
|
||||
|
||||
this._register(attachLinkStyler(linkElement, this.themeService));
|
||||
(<HTMLElement>this.textContainer.nativeElement).appendChild(linkElement.el);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user