Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e0e40e8

Browse files
RaphSteinNarretz
authored andcommitted
docs(ngAria): change aria-live attribute value from polite to assertive
For ngMessages directive ngAria generates aria-live with value assertive and not polite. Closes #11280
1 parent f8c8cf6 commit e0e40e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/accessibility.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Becomes:
235235

236236
The new ngMessages module makes it easy to display form validation or other messages with priority
237237
sequencing and animation. To expose these visual messages to screen readers,
238-
ngAria injects `aria-live="polite"`, causing them to be read aloud any time a message is shown,
238+
ngAria injects `aria-live="assertive"`, causing them to be read aloud any time a message is shown,
239239
regardless of the user's focus location.
240240
###Example
241241

@@ -249,7 +249,7 @@ regardless of the user's focus location.
249249
Becomes:
250250

251251
```html
252-
<div ng-messages="myForm.myName.$error" aria-live="polite">
252+
<div ng-messages="myForm.myName.$error" aria-live="assertive">
253253
<div ng-message="required">You did not enter a field</div>
254254
<div ng-message="maxlength">Your field is too long</div>
255255
</div>

0 commit comments

Comments
 (0)