66import { BrowserFeatures } from 'vs/base/browser/canIUse' ;
77import * as DOM from 'vs/base/browser/dom' ;
88import { 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' ;
1010import { Button } from 'vs/base/browser/ui/button/button' ;
1111import { Toggle , unthemedToggleStyles } from 'vs/base/browser/ui/toggle/toggle' ;
1212import { 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