mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
Add alert for description when modal message is shown (#16483)
* Add alert for description when modal message is shown * Fix hygiene
This commit is contained in:
@@ -582,6 +582,11 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
}
|
||||
DOM.removeNode(this._messageDetail!);
|
||||
this.messagesElementVisible = !!this._messageSummaryText;
|
||||
// Read out the description to screen readers so they don't have to
|
||||
// search around for the alert box to hear the extra information
|
||||
if (description) {
|
||||
alert(description);
|
||||
}
|
||||
this.updateExpandMessageState();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user