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.
This commit is contained in:
Katie Smith
2020-08-21 16:52:35 +01:00
parent 0dfbc1df67
commit e3006f62b2
6 changed files with 12 additions and 12 deletions

View File

@@ -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;

View File

@@ -22,7 +22,7 @@
<div class="user-list">
{% for user in users %}
<div class="user-list-item">
<h3 title="{{ user.email_address }}">
<h2 class="user-list-item-heading" title="{{ user.email_address }}">
{%- if user.name -%}
<span class="heading-small live-search-relevant">{{ user.name }}</span>&ensp;
{%- endif -%}
@@ -37,7 +37,7 @@
<span class="live-search-relevant">{{ user.email_address }}</span>
{% endif %}
</span>
</h3>
</h2>
<ul class="tick-cross-list govuk-grid-row">
<div class="tick-cross-list-permissions govuk-grid-column-three-quarters">
{% for permission, label in permissions %}

View File

@@ -25,7 +25,7 @@
<div class="user-list">
{% for user in users %}
<div class="user-list-item">
<h3>
<h2 class="user-list-item-heading">
{%- if user.name -%}
<span class="heading-small">{{ user.name }}</span>&ensp;
{%- endif -%}
@@ -40,7 +40,7 @@
{{ user.email_address }}
{% endif %}
</span>
</h3>
</h2>
<ul class="tick-cross-list">
<li class="tick-cross-list-edit-link">
{% if user.status == 'pending' %}

View File

@@ -23,13 +23,13 @@
{% endif %}
{% for item in current_service.email_reply_to_addresses %}
<div class="user-list-item">
<h3>
<h2 class="user-list-item-heading">
<span class="heading-small">{{ item.email_address }}</span>&ensp;<span class="hint">
{%- if item.is_default -%}
(default)
{% endif %}
</span>
</h3>
</h2>
{% if current_user.has_permissions('manage_service') %}
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.service_edit_email_reply_to', service_id =current_service.id, reply_to_email_id = item.id) }}">Change</a>
{% endif %}

View File

@@ -23,7 +23,7 @@
{% endif %}
{% for item in current_service.sms_senders_with_hints %}
<div class="user-list-item">
<h3>
<h2 class="user-list-item-heading">
<span class="heading-small">{{ item.sms_sender }}</span>
{% if item.hint %}
&ensp;
@@ -31,7 +31,7 @@
{{ item.hint }}
</span>
{% endif %}
</h3>
</h2>
{% if current_user.has_permissions('manage_service') %}
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.service_edit_sms_sender', service_id=current_service.id, sms_sender_id = item.id) }}">Change</a>
{% endif %}