Add optional label to text, options, phone, and multi-checkbox inputs
Use new optional attribute on fields that are optional Update styling to fit optional label and update translations
This commit is contained in:
@@ -28,6 +28,10 @@
|
||||
<legend>
|
||||
<div class="usa-input__title{% if not field.description %}-inline{% endif %}">
|
||||
{{ field.label | striptags}}
|
||||
{% if optional %}
|
||||
|
||||
<span class="usa-input-label-helper">(optional)</span>
|
||||
{% endif %}
|
||||
{% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user