Update optional tag

This commit is contained in:
leigh-mil 2020-02-17 14:08:28 -05:00
parent a13716e7ed
commit 40be760fa0
5 changed files with 10 additions and 3 deletions

View File

@ -60,6 +60,12 @@
margin: ($gap * 2) 0;
max-width: 75rem;
&-label-helper {
font-size: $small-font-size;
margin-left: $gap;
margin-right: $gap;
}
label {
padding: 0 0 ($gap / 2) 0;
margin: 0;

View File

@ -26,7 +26,7 @@
<div class="usa-input__title">
{{ field.label | striptags }}
{% if optional %}
<span class="usa-input-label-helper">(optional)</span>
<span class="usa-input-label-helper">{{ "common.optional" | translate }}</span>
{% endif %}
{% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
{% if not field.description %}

View File

@ -27,7 +27,7 @@
<div class="usa-input__title{% if not field.description %}-inline{% endif %}">
{{ field.label | striptags}}
{% if optional %}
<span class="usa-input-label-helper">(optional)</span>
<span class="usa-input-label-helper">{{ "common.optional" | translate }}</span>
{% endif %}
{% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
</div>

View File

@ -40,7 +40,7 @@
<div class="usa-input__title">
{{ label }}
{% if optional and showOptional %}
<span class="usa-input-label-helper">(optional)</span>
<span class="usa-input-label-helper">{{ "common.optional" | translate }}</span>
{% endif %}
{% if tooltip and not disabled %}
{{ Tooltip(tooltip, tooltip_title) }}

View File

@ -51,6 +51,7 @@ common:
lorem: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
name: Name
next: Next
optional: Optional
previous: Previous
save: Save
save_changes: Save Changes