From c127de42684631d353233a030afac44e5c1a4ec9 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 8 Jan 2021 13:49:18 +0000 Subject: [PATCH] Move message length information before the button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We feel that this is more appropriate because it’s part of the information you’re agreeing to before you hit submit. Sometimes users can missing information that doesn’t start left-aligned to the column they’re interacting with. It also makes it closer to the Design System component. We’re keeping it in the sticky footer, so that it’s always visible no matter where in the message you’re scrolled to (this means you won’t have to edited to content then scroll down to check whether you’ve made it fit). --- app/assets/stylesheets/components/page-footer.scss | 4 ---- app/assets/stylesheets/views/template.scss | 6 +++++- app/templates/components/page-footer.html | 5 ++--- app/templates/components/textbox.html | 5 +++-- app/templates/views/edit-broadcast-template.html | 11 +++++++++-- app/templates/views/edit-sms-template.html | 10 ++++++++-- tests/app/main/views/test_templates.py | 8 -------- 7 files changed, 27 insertions(+), 22 deletions(-) diff --git a/app/assets/stylesheets/components/page-footer.scss b/app/assets/stylesheets/components/page-footer.scss index fae7d85c9..c1874c397 100644 --- a/app/assets/stylesheets/components/page-footer.scss +++ b/app/assets/stylesheets/components/page-footer.scss @@ -3,10 +3,6 @@ position: relative; margin-bottom: 30px; - &--inline-block { - display: inline-block; - } - &-delete-link { line-height: 40px; diff --git a/app/assets/stylesheets/views/template.scss b/app/assets/stylesheets/views/template.scss index 13dd69a50..481a80dc0 100644 --- a/app/assets/stylesheets/views/template.scss +++ b/app/assets/stylesheets/views/template.scss @@ -60,9 +60,13 @@ @include core-19($tabular-numbers: true); color: $secondary-text-colour; vertical-align: bottom; - padding: 0 0 govuk-spacing(1) govuk-spacing(2); + padding: 0 0 govuk-spacing(6) 0 display: inline-block; + .content-fixed__bottom & { + padding-bottom: govuk-spacing(3); + } + & .govuk-error-message { margin-top: 0; } diff --git a/app/templates/components/page-footer.html b/app/templates/components/page-footer.html index 66f4564d1..789318ae7 100644 --- a/app/templates/components/page-footer.html +++ b/app/templates/components/page-footer.html @@ -10,10 +10,9 @@ secondary_link_text=None, delete_link=False, delete_link_text="delete", - centered_button=False, - inline_block=False + centered_button=False ) %} -
- {{ page_footer('Save', inline_block=True) }}
+ {{ page_footer('Save') }}