update validation code

This commit is contained in:
Beverly Nguyen
2025-03-24 12:33:01 -07:00
parent 3a38b8bf31
commit 7e2a2bad8e
7 changed files with 19 additions and 25 deletions

View File

@@ -56,6 +56,7 @@
{% set itemHintId = id + '-item-hint' %}
<div class="usa-radio">
<input class="usa-radio__input" id="{{ id }}" name="{{ params.name }}" type="radio" value="{{ item.value }}"
{{-" checked" if item.checked }}
{{-" disabled" if item.disabled }}
{%- if item.conditional %} data-aria-controls="{{ conditionalId }}"{% endif -%}
{%- if hasHint %} aria-describedby="{{ itemHintId }}"{% endif -%}