From 964ff0119eef2ce2942752d146ed4f5f157b7828 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Mon, 9 Mar 2020 08:25:04 -0700 Subject: [PATCH] Update aria label for modal dialog when title is updated (#9492) --- src/sql/workbench/browser/modal/modal.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sql/workbench/browser/modal/modal.ts b/src/sql/workbench/browser/modal/modal.ts index b7bc942f79..02640eabea 100644 --- a/src/sql/workbench/browser/modal/modal.ts +++ b/src/sql/workbench/browser/modal/modal.ts @@ -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 {