Skip to content

Commit

Permalink
Fix: unnecessary space on required form field label (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran authored Apr 18, 2024
2 parents 04dea37 + 893fd2e commit 803e14c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benefits/core/templates/core/includes/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
{% for field in form %}
<div class="row form-group mb-0">
<div class="col-12">
{# djlint:off #}
{% if field.label %}
<label for="{{ field.id_for_label }}" class="form-control-label">
{{ field.label }}
{% if field.field.required %}<span class="required-label text-body">*</span>{% endif %}
</label>
<label for="{{ field.id_for_label }}" class="form-control-label">{{ field.label }}{% if field.field.required %}<span class="required-label text-body">*</span>{% endif %}
</label>
{% endif %}
{# djlint:on #}

{{ field }}

Expand Down

0 comments on commit 803e14c

Please sign in to comment.