Fix dialog aria labels (#182995)

This commit is contained in:
Joyce Er 2023-05-19 14:50:45 -07:00 committed by GitHub
parent a89442fbd5
commit c0be5c424a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,16 +172,16 @@ export class Dialog extends Disposable {
}
private getIconAriaLabel(): string {
const typeLabel = nls.localize('dialogInfoMessage', 'Info');
let typeLabel = nls.localize('dialogInfoMessage', 'Info');
switch (this.options.type) {
case 'error':
nls.localize('dialogErrorMessage', 'Error');
typeLabel = nls.localize('dialogErrorMessage', 'Error');
break;
case 'warning':
nls.localize('dialogWarningMessage', 'Warning');
typeLabel = nls.localize('dialogWarningMessage', 'Warning');
break;
case 'pending':
nls.localize('dialogPendingMessage', 'In Progress');
typeLabel = nls.localize('dialogPendingMessage', 'In Progress');
break;
case 'none':
case 'info':