Skip to content

Commit

Permalink
Fix error message html to match design system example
Browse files Browse the repository at this point in the history
  • Loading branch information
hnryjmes committed Jan 14, 2025
1 parent 7ee778b commit 46dfb12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lite_forms/templates/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<!-- Error -->
{% if errors %}
{% if errors|key_value:question.name and question.input_type != "hidden" %}
<label id="error-{{ question.name }}" for="{{ question.name }}" class="govuk-error-message">
<span id="error-{{ question.name }}" class="govuk-error-message">
<span class="govuk-visually-hidden">Error:</span>
{% for error in errors|key_value:question.name %}
{{ error }}
{% endfor %}
</label>
</span>
{% endif %}
{% endif %}

Expand Down

0 comments on commit 46dfb12

Please sign in to comment.