Skip to content

Commit 5eeacc5

Browse files
authored
Use status instead of alert (microsoft#185609)
1 parent ea97852 commit 5eeacc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/preferences/browser/settingsTree.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { BrowserFeatures } from 'vs/base/browser/canIUse';
77
import * as DOM from 'vs/base/browser/dom';
88
import { IMouseEvent } from 'vs/base/browser/mouseEvent';
9-
import { alert as ariaAlert } from 'vs/base/browser/ui/aria/aria';
9+
import * as aria from 'vs/base/browser/ui/aria/aria';
1010
import { Button } from 'vs/base/browser/ui/button/button';
1111
import { Toggle, unthemedToggleStyles } from 'vs/base/browser/ui/toggle/toggle';
1212
import { IInputOptions, InputBox } from 'vs/base/browser/ui/inputbox/inputBox';
@@ -2074,7 +2074,7 @@ function renderValidations(dataElement: SettingsTreeSettingElement, template: IS
20742074
template.validationErrorMessageElement.innerText = errMsg;
20752075
const validationError = localize('validationError', "Validation Error.");
20762076
template.inputBox.inputElement.parentElement!.setAttribute('aria-label', [validationError, errMsg].join(' '));
2077-
if (!calledOnStartup) { ariaAlert(validationError + ' ' + errMsg); }
2077+
if (!calledOnStartup) { aria.status(validationError + ' ' + errMsg); }
20782078
return true;
20792079
} else {
20802080
template.inputBox.inputElement.parentElement!.removeAttribute('aria-label');
@@ -2101,7 +2101,7 @@ function renderArrayValidations(
21012101
template.validationErrorMessageElement.innerText = errMsg;
21022102
const validationError = localize('validationError', "Validation Error.");
21032103
template.containerElement.setAttribute('aria-label', [dataElement.setting.key, validationError, errMsg].join(' '));
2104-
if (!calledOnStartup) { ariaAlert(validationError + ' ' + errMsg); }
2104+
if (!calledOnStartup) { aria.status(validationError + ' ' + errMsg); }
21052105
return true;
21062106
} else {
21072107
template.containerElement.setAttribute('aria-label', dataElement.setting.key);

0 commit comments

Comments
 (0)