add aria label to the title of dialog (#2210)

This commit is contained in:
Abbie Petchtes
2018-08-10 15:34:59 -07:00
committed by GitHub
parent 5fa740ead4
commit 8f06e72318

View File

@@ -228,7 +228,7 @@ export abstract class Modal extends Disposable implements IThemable {
}
// The builder builds the dialog. It append header, body and footer sections.
this._builder = $().div({ class: builderClass, 'role': 'dialog' }, (dialogContainer) => {
this._builder = $().div({ class: builderClass, 'role': 'dialog', 'aria-label': this._title }, (dialogContainer) => {
this._modalDialog = dialogContainer.div({ class: 'modal-dialog ', role: 'document' }, (modalDialog) => {
modalDialog.div({ class: 'modal-content' }, (modelContent) => {
parts.forEach((part) => {