mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Update aria label for modal dialog when title is updated (#9492)
This commit is contained in:
@@ -528,9 +528,13 @@ export abstract class Modal extends Disposable implements IThemable {
|
|||||||
* Set the title of the modal
|
* Set the title of the modal
|
||||||
*/
|
*/
|
||||||
protected set title(title: string) {
|
protected set title(title: string) {
|
||||||
if (this._title !== undefined) {
|
this._title = title;
|
||||||
|
if (this._modalTitle) {
|
||||||
this._modalTitle.innerText = title;
|
this._modalTitle.innerText = title;
|
||||||
}
|
}
|
||||||
|
if (this._bodyContainer) {
|
||||||
|
this._bodyContainer.setAttribute('aria-label', title);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected get title(): string {
|
protected get title(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user