adding error annoucement

This commit is contained in:
Beverly Nguyen
2024-12-12 23:08:25 -08:00
parent 17f758bace
commit b731cd62bb
4 changed files with 19 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
{#- a record of other elements that we need to associate with the input using
aria-describedby for example hints or error messages -#}
{% set describedBy = params.describedBy if params.describedBy else "" %}
<div class="usa-form-group {%- if params.errorMessage %} usa-form-group--error{% endif %} {%- if params.formGroup.classes %} {{ params.formGroup.classes }}{% endif %}">
<div class="usa-form-group {%- if params.errorMessage %} usa-form-group--error{% endif %} {%- if params.formGroup.classes %} {{ params.formGroup.classes }}{% endif %}" aria-live="polite" role="alert">
{{ usaLabel({
html: params.label.html,
text: params.label.text,