Update optional tag
This commit is contained in:
parent
a13716e7ed
commit
40be760fa0
@ -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;
|
||||
|
@ -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 %}
|
||||
|
@ -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>
|
||||
|
@ -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) }}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user