Don’t inherit directly from admin template

Pages that don’t have navigation shouldn’t extend the top-level admin
template directly.

They should extend `withoutnav_template.html` instead, because then they
get a wrapping `<main>` element, which is good semantically and for
accessibility, and also defaults the font size to `19px`.
This commit is contained in:
Chris Hill-Scott
2016-09-28 15:05:54 +01:00
parent 317a01972c
commit 79e0881a23
4 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
{% extends "admin_template.html" %}
{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
@@ -6,7 +6,7 @@
GOV.UK Notify | Service settings
{% endblock %}
{% block fullwidth_content %}
{% block maincolumn_content %}
<h1 class="heading-large">Change your {{ thing }}</h1>

View File

@@ -1,4 +1,4 @@
{% extends "admin_template.html" %}
{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
@@ -6,7 +6,7 @@
GOV.UK Notify | Service settings
{% endblock %}
{% block fullwidth_content %}
{% block maincolumn_content %}
<h1 class="heading-large">Change your password</h1>

View File

@@ -1,4 +1,4 @@
{% extends "admin_template.html" %}
{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
@@ -6,7 +6,7 @@
GOV.UK Notify | Service settings
{% endblock %}
{% block fullwidth_content %}
{% block maincolumn_content %}
<h1 class="heading-large">Change your {{ thing }}</h1>

View File

@@ -1,4 +1,4 @@
{% extends "admin_template.html" %}
{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
@@ -6,7 +6,7 @@
GOV.UK Notify | Service settings
{% endblock %}
{% block fullwidth_content %}
{% block maincolumn_content %}
<h1 class="heading-large">Change your {{ thing }}</h1>