Skip to content

Commit

Permalink
508 Jaws reading validation message dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
yerramshilpa committed Oct 23, 2024
1 parent e9d50d2 commit 9fd0082
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ import { FieldWrapper } from '@ngx-formly/core';
@Component({
template: `
<ng-container #fieldComponent></ng-container>
<div *ngIf="showError" class="usa-error-message" [style.display]="'block'">
<div
*ngIf="showError"
class="usa-error-message"
role="alert"
[id]="id + '-error-message'"
aria-live="assertive"
[style.display]="'block'"
>
<formly-validation-message [field]="field"></formly-validation-message>
</div>
`,
Expand Down

0 comments on commit 9fd0082

Please sign in to comment.