From e3006f62b2987eeedc7b47fc61a1837ece211818 Mon Sep 17 00:00:00 2001 From: Katie Smith Date: Fri, 21 Aug 2020 16:52:35 +0100 Subject: [PATCH] Ensure H2 headings follow H1 headings We had some cases where an H3 heading followed an H1. This was flagged as something to change in the accessibility report. --- app/assets/stylesheets/views/users.scss | 2 +- app/templates/views/manage-users.html | 4 ++-- .../views/organisations/organisation/users/index.html | 4 ++-- app/templates/views/service-settings/email_reply_to.html | 4 ++-- app/templates/views/service-settings/sms-senders.html | 4 ++-- tests/app/main/views/test_manage_users.py | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/views/users.scss b/app/assets/stylesheets/views/users.scss index 259d14bcc..4abef1993 100644 --- a/app/assets/stylesheets/views/users.scss +++ b/app/assets/stylesheets/views/users.scss @@ -11,7 +11,7 @@ $item-top-padding: govuk-spacing(3); border-top: 1px solid $border-colour; position: relative; - h3 { + &-heading { padding-right: govuk-spacing(3); white-space: nowrap; diff --git a/app/templates/views/manage-users.html b/app/templates/views/manage-users.html index afbe972a7..444361dcc 100644 --- a/app/templates/views/manage-users.html +++ b/app/templates/views/manage-users.html @@ -22,7 +22,7 @@
{% for user in users %}
-

+

{%- if user.name -%} {{ user.name }}  {%- endif -%} @@ -37,7 +37,7 @@ {{ user.email_address }} {% endif %} -

+
    {% for permission, label in permissions %} diff --git a/app/templates/views/organisations/organisation/users/index.html b/app/templates/views/organisations/organisation/users/index.html index 1c95f8046..7adb139f9 100644 --- a/app/templates/views/organisations/organisation/users/index.html +++ b/app/templates/views/organisations/organisation/users/index.html @@ -25,7 +25,7 @@
    {% for user in users %}
    -

    +

    {%- if user.name -%} {{ user.name }}  {%- endif -%} @@ -40,7 +40,7 @@ {{ user.email_address }} {% endif %} -

    +