mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
remove role=document ffrom dialog so screenreader doesn't read it (#7685)
This commit is contained in:
@@ -173,7 +173,7 @@ export abstract class Modal extends Disposable implements IThemable {
|
|||||||
this._bodyContainer = DOM.$(`.${builderClass}`, { role: 'dialog', 'aria-label': this._title });
|
this._bodyContainer = DOM.$(`.${builderClass}`, { role: 'dialog', 'aria-label': this._title });
|
||||||
const top = this.layoutService.getTitleBarOffset();
|
const top = this.layoutService.getTitleBarOffset();
|
||||||
this._bodyContainer.style.top = `${top}px`;
|
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'));
|
const modalContent = DOM.append(this._modalDialog, DOM.$('.modal-content'));
|
||||||
|
|
||||||
if (!isUndefinedOrNull(this._title)) {
|
if (!isUndefinedOrNull(this._title)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user