Skip to content

Commit

Permalink
add aria-atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbubernak committed Feb 17, 2021
1 parent 2ba8aa8 commit 8540e05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const MAT_ERROR = new InjectionToken<MatError>('MatError');
selector: 'mat-error',
host: {
'class': 'mat-mdc-form-field-error mat-mdc-form-field-bottom-align',
'aria-atomic': 'true',
'[attr.aria-live]': 'ariaLive',
'[id]': 'id',
},
Expand Down
1 change: 1 addition & 0 deletions src/material/form-field/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const MAT_ERROR = new InjectionToken<MatError>('MatError');
host: {
'class': 'mat-error',
'[attr.id]': 'id',
'aria-atomic': 'true',
'[attr.aria-live]': 'ariaLive',
},
providers: [{provide: MAT_ERROR, useExisting: MatError}],
Expand Down

0 comments on commit 8540e05

Please sign in to comment.