From 65207a480dee09febf6e10d479f729e92e39e03a Mon Sep 17 00:00:00 2001 From: luis cielak Date: Mon, 13 Aug 2018 13:10:18 -0400 Subject: [PATCH] Set label text displayed block with the tooltip --- styles/elements/_inputs.scss | 1 - templates/components/options_input.html | 9 +++++---- templates/components/text_input.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/styles/elements/_inputs.scss b/styles/elements/_inputs.scss index 7da283af..88589f29 100644 --- a/styles/elements/_inputs.scss +++ b/styles/elements/_inputs.scss @@ -81,7 +81,6 @@ } .usa-input__help { - display: block; @include h4; font-weight: normal; padding: $gap/2 0; diff --git a/templates/components/options_input.html b/templates/components/options_input.html index 49e98943..6009cd51 100644 --- a/templates/components/options_input.html +++ b/templates/components/options_input.html @@ -6,16 +6,17 @@
- {{ field.label | striptags}} - - {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %} +
+ {{ field.label | striptags}} + {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %} +
{% if field.description %} {{ field.description | safe }} {% endif %} {% if field.errors %} - {{ Icon('alert') }} + {{ Icon('alert') }} {% endif %}
diff --git a/templates/components/text_input.html b/templates/components/text_input.html index 8703e2db..f14ffe87 100644 --- a/templates/components/text_input.html +++ b/templates/components/text_input.html @@ -4,7 +4,7 @@ {% macro TextInput(field, tooltip='', placeholder='') -%}