mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 17:22:48 -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
|
||||
*/
|
||||
protected set title(title: string) {
|
||||
if (this._title !== undefined) {
|
||||
this._title = title;
|
||||
if (this._modalTitle) {
|
||||
this._modalTitle.innerText = title;
|
||||
}
|
||||
if (this._bodyContainer) {
|
||||
this._bodyContainer.setAttribute('aria-label', title);
|
||||
}
|
||||
}
|
||||
|
||||
protected get title(): string {
|
||||
|
||||
Reference in New Issue
Block a user