diff --git a/atst/forms/request.py b/atst/forms/request.py index f15e9140..fb179587 100644 --- a/atst/forms/request.py +++ b/atst/forms/request.py @@ -62,7 +62,7 @@ class RequestForm(ValidatedForm): ) engineering_assessment = RadioField( - description="Have you completed an engineering assessment of your software systems for cloud readiness?", + "Have you completed an engineering assessment of your software systems for cloud readiness?", choices=[("yes", "Yes"), ("no", "No"), ("in_progress", "In Progress")], ) diff --git a/styles/elements/_inputs.scss b/styles/elements/_inputs.scss index 459e907d..eff35e34 100644 --- a/styles/elements/_inputs.scss +++ b/styles/elements/_inputs.scss @@ -65,20 +65,12 @@ } label { - padding: 0 0 $gap 0; + padding: 0 0 $gap/2 0; margin: 0; @include h4; @include line-max; position: relative; - .usa-input__help { - display: block; - @include h5; - font-weight: normal; - padding-top: $gap / 2; - @include line-max; - } - .icon { position: absolute; left: 100%; @@ -88,6 +80,14 @@ } } + .usa-input__help { + display: block; + @include h4; + font-weight: normal; + padding: $gap/2 0; + @include line-max; + } + input, textarea, select { @@ -100,9 +100,14 @@ padding: 0 0 $gap 0; @include h4; + label { + font-weight: $font-bold; + } + .icon { vertical-align: middle; } + } ul { diff --git a/styles/elements/_typography.scss b/styles/elements/_typography.scss index fcdc97d9..b1af1be1 100644 --- a/styles/elements/_typography.scss +++ b/styles/elements/_typography.scss @@ -20,6 +20,7 @@ h1, h2, h3, h4, h5, h6 { + .subtitle * { margin-top: 0; + color: $color-gray; } } diff --git a/templates/components/options_input.html b/templates/components/options_input.html index ff0d8814..dbd01947 100644 --- a/templates/components/options_input.html +++ b/templates/components/options_input.html @@ -1,11 +1,11 @@ {% from "components/icon.html" import Icon %} {% macro OptionsInput(field, inline=False) -%} -
+
- {{ field.label }} + {{ field.label | striptags}} {% if field.description %} {{ field.description | safe }} @@ -26,4 +26,7 @@
+ + + {%- endmacro %} diff --git a/templates/components/text_input.html b/templates/components/text_input.html index 0f50ca89..80c24ec2 100644 --- a/templates/components/text_input.html +++ b/templates/components/text_input.html @@ -1,5 +1,7 @@ +{% from "components/icon.html" import Icon %} + {% macro TextInput(field, placeholder='') -%} -
+
{{ field(placeholder=placeholder) | safe }} @@ -20,4 +20,4 @@ {% endfor %} {% endif %}
-{%- endmacro %} +{%- endmacro %} \ No newline at end of file