Set label text displayed block with the tooltip
This commit is contained in:
parent
9260a01442
commit
65207a480d
@ -81,7 +81,6 @@
|
||||
}
|
||||
|
||||
.usa-input__help {
|
||||
display: block;
|
||||
@include h4;
|
||||
font-weight: normal;
|
||||
padding: $gap/2 0;
|
||||
|
@ -6,16 +6,17 @@
|
||||
|
||||
<fieldset class="usa-input__choices {% if inline %}usa-input__choices--inline{% endif %}">
|
||||
<legend>
|
||||
<div>
|
||||
{{ field.label | striptags}}
|
||||
|
||||
{% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
|
||||
</div>
|
||||
|
||||
{% if field.description %}
|
||||
<span class='usa-input__help'>{{ field.description | safe }}</span>
|
||||
{% endif %}
|
||||
|
||||
{% if field.errors %}
|
||||
<span class="icon-validation">{{ Icon('alert') }}</span>
|
||||
{{ Icon('alert') }}
|
||||
{% endif %}
|
||||
</legend>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
{% macro TextInput(field, tooltip='', placeholder='') -%}
|
||||
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
|
||||
<label for={{field.name}}>
|
||||
{{ field.label | striptags }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
|
||||
<div>{{ field.label | striptags }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}</div>
|
||||
|
||||
{% if field.description %}
|
||||
<span class='usa-input__help'>{{ field.description | safe }}</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user