Browse Source

Add role=alert for error message of input field.

Mateusz Samsel 6 years ago
parent
commit
22685ab819
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/ckeditor5-ui/src/labeledinput/labeledinputview.js

+ 2 - 1
packages/ckeditor5-ui/src/labeledinput/labeledinputview.js

@@ -210,7 +210,8 @@ export default class LabeledInputView extends View {
 					bind.if( 'errorText', 'ck-labeled-input__status_error' ),
 					bind.if( '_statusText', 'ck-hidden', value => !value )
 				],
-				id: statusUid
+				id: statusUid,
+				role: bind.if( 'errorText', 'alert' )
 			},
 			children: [
 				{