diff --git a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss index ef50b9394..31cbeb3fa 100644 --- a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss +++ b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss @@ -289,6 +289,7 @@ td.table-empty-message { margin-top: units(1); width: 100%; border: 1px solid color('gray-60'); + height: 40px; } } diff --git a/app/main/views/send.py b/app/main/views/send.py index e3b3ed0a9..418446f52 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -481,6 +481,7 @@ def send_one_off_step(service_id, template_id, step_index): ), template=template, form=form, + current_placeholder=current_placeholder, skip_link=get_skip_link(step_index, template), back_link=back_link, link_to_upload=( diff --git a/app/templates/components/textbox.html b/app/templates/components/textbox.html index de0f93b9f..1fcd59afb 100644 --- a/app/templates/components/textbox.html +++ b/app/templates/components/textbox.html @@ -5,7 +5,6 @@ highlight_placeholders=False, autofocus=False, autosize=False, - colour_preview=False, help_link=None, help_link_text=None, width='2-3', @@ -13,58 +12,82 @@ safe_error_message=False, rows=8, extra_form_group_classes='', - placeholder='' + placeholder='', + input_id=None ) %} + {% set field_id = kwargs.id if kwargs.id is defined else field.id %} + {% set described_by = '' %} + {% if hint %}{% set described_by = described_by + field_id ~ '-hint' %}{% endif %} + {% if field.errors %} + {% if described_by %}{% set described_by = described_by + ' ' %}{% endif %} + {% set described_by = described_by + field_id ~ '-error' %} + {% endif %} +
-