From 087f7fc43d58570a9ce3f9c08b4b5328a12ffddc Mon Sep 17 00:00:00 2001 From: Kim Santiago <31145923+kisantia@users.noreply.github.com> Date: Mon, 14 Oct 2019 16:57:09 -0700 Subject: [PATCH] remove role=document ffrom dialog so screenreader doesn't read it (#7685) --- src/sql/workbench/browser/modal/modal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/browser/modal/modal.ts b/src/sql/workbench/browser/modal/modal.ts index b4ce5f7a28..af49c3ec82 100644 --- a/src/sql/workbench/browser/modal/modal.ts +++ b/src/sql/workbench/browser/modal/modal.ts @@ -173,7 +173,7 @@ export abstract class Modal extends Disposable implements IThemable { this._bodyContainer = DOM.$(`.${builderClass}`, { role: 'dialog', 'aria-label': this._title }); const top = this.layoutService.getTitleBarOffset(); this._bodyContainer.style.top = `${top}px`; - this._modalDialog = DOM.append(this._bodyContainer, DOM.$('.modal-dialog', { role: 'document' })); + this._modalDialog = DOM.append(this._bodyContainer, DOM.$('.modal-dialog')); const modalContent = DOM.append(this._modalDialog, DOM.$('.modal-content')); if (!isUndefinedOrNull(this._title)) {