6
6
import { BrowserFeatures } from 'vs/base/browser/canIUse' ;
7
7
import * as DOM from 'vs/base/browser/dom' ;
8
8
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' ;
10
10
import { Button } from 'vs/base/browser/ui/button/button' ;
11
11
import { Toggle , unthemedToggleStyles } from 'vs/base/browser/ui/toggle/toggle' ;
12
12
import { IInputOptions , InputBox } from 'vs/base/browser/ui/inputbox/inputBox' ;
@@ -2074,7 +2074,7 @@ function renderValidations(dataElement: SettingsTreeSettingElement, template: IS
2074
2074
template . validationErrorMessageElement . innerText = errMsg ;
2075
2075
const validationError = localize ( 'validationError' , "Validation Error." ) ;
2076
2076
template . inputBox . inputElement . parentElement ! . setAttribute ( 'aria-label' , [ validationError , errMsg ] . join ( ' ' ) ) ;
2077
- if ( ! calledOnStartup ) { ariaAlert ( validationError + ' ' + errMsg ) ; }
2077
+ if ( ! calledOnStartup ) { aria . status ( validationError + ' ' + errMsg ) ; }
2078
2078
return true ;
2079
2079
} else {
2080
2080
template . inputBox . inputElement . parentElement ! . removeAttribute ( 'aria-label' ) ;
@@ -2101,7 +2101,7 @@ function renderArrayValidations(
2101
2101
template . validationErrorMessageElement . innerText = errMsg ;
2102
2102
const validationError = localize ( 'validationError' , "Validation Error." ) ;
2103
2103
template . containerElement . setAttribute ( 'aria-label' , [ dataElement . setting . key , validationError , errMsg ] . join ( ' ' ) ) ;
2104
- if ( ! calledOnStartup ) { ariaAlert ( validationError + ' ' + errMsg ) ; }
2104
+ if ( ! calledOnStartup ) { aria . status ( validationError + ' ' + errMsg ) ; }
2105
2105
return true ;
2106
2106
} else {
2107
2107
template . containerElement . setAttribute ( 'aria-label' , dataElement . setting . key ) ;
0 commit comments