A label tells the user what the corresponding input field means.
<label for="{{ for }}">{{ label }}
{% if label_optional %}
<span class="label-optional">
({{ label_optional }})
</span>
{% endif %}
</label>
<label for="form-item">Label
<span class="label-optional">
(Optional)
</span>
</label>
{
"label": "Label",
"for": "form-item",
"label_optional": "Optional"
}
label {
@include theme('color', 'color-tertiary', 'label-color');
@include bold-text;
.label-optional {
@include theme('color', 'color-tertiary', 'label-color-optional');
font-size: .8rem;
}
display: block;
//margin: 0 0 .4rem;
font-size: .8rem;
line-height: 1.2rem;
}