Don’t allow paragraphs without class attribute

All paragraphs should have class="govuk-body", or be otherwise
custom-styled. This commit adds some extra checks to our test fixture
that looks for paragraphs that don’t have any styling. Our test coverage
is pretty good, so this should check almost all pages, and prevent
regressions.

I’ve done this in such a way that it can be extended for other elements
(e.g. links) in the future.
This commit is contained in:
Chris Hill-Scott
2020-05-29 17:11:01 +01:00
parent 82ec03e263
commit 4df99bd27f
134 changed files with 517 additions and 497 deletions

View File

@@ -9,10 +9,10 @@
<h1 class="heading-large">Delivery status</h1>
<p>Notifys real-time dashboard lets you check the status of any message, to see when it was delivered.</p>
<p>For <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for("main.security") }}">security</a>, this information is only available for 7 days after a message has been sent. You can download a report, including a list of sent messages, for your own records.</p>
<p>This page describes the statuses youll see when youre signed in to Notify.</p>
<p>If youre using the Notify API, read our <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.documentation') }}">documentation</a> for a list of API statuses.<p>
<p class="govuk-body">Notifys real-time dashboard lets you check the status of any message, to see when it was delivered.</p>
<p class="govuk-body">For <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for("main.security") }}">security</a>, this information is only available for 7 days after a message has been sent. You can download a report, including a list of sent messages, for your own records.</p>
<p class="govuk-body">This page describes the statuses youll see when youre signed in to Notify.</p>
<p class="govuk-body">If youre using the Notify API, read our <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.documentation') }}">documentation</a> for a list of API statuses.<p class="govuk-body">
<h2 id="email-statuses" class="heading-medium">Emails</h2>
<div class="bottom-gutter-3-2">
@@ -38,10 +38,10 @@
</div>
<h3 id="spam" class="heading-small">Spam</h3>
<p>If an email is marked as spam, Notify receives a complaint from the email provider. Well contact you if we receive a complaint about any of your emails. When this happens you should remove the recipients email address from your list.</p>
<p class="govuk-body">If an email is marked as spam, Notify receives a complaint from the email provider. Well contact you if we receive a complaint about any of your emails. When this happens you should remove the recipients email address from your list.</p>
<h3 id="open-rates" class="heading-small">Open rates and click-throughs</h3>
<p>Notify cannot tell you if your users open an email or click on the links in an email. We do not track open rates and click-throughs because there are privacy issues. Tracking emails without asking permission from users could breach General Data Protection Regulations (GDPR).</p>
<p class="govuk-body">Notify cannot tell you if your users open an email or click on the links in an email. We do not track open rates and click-throughs because there are privacy issues. Tracking emails without asking permission from users could breach General Data Protection Regulations (GDPR).</p>
<h2 id="sms-statuses" class="heading-medium">Text messages</h2>
<div class="bottom-gutter-3-2">
@@ -91,8 +91,8 @@
<h3 id="returned-mail" class="heading-small">Undelivered letters and returned mail</h3>
<p>Every letter we send includes our printers address on the back of the envelope. Its not possible to customise the return address.</p>
<p>Returned mail is destroyed by our printer.</p>
<p>Each letter has a unique ID. Our printer sends us the ID of every letter they destroy. Well contact you if the IDs match any of your letters. This is a partly manual process, so it can take a few weeks.</p>
<p class="govuk-body">Every letter we send includes our printers address on the back of the envelope. Its not possible to customise the return address.</p>
<p class="govuk-body">Returned mail is destroyed by our printer.</p>
<p class="govuk-body">Each letter has a unique ID. Our printer sends us the ID of every letter they destroy. Well contact you if the IDs match any of your letters. This is a partly manual process, so it can take a few weeks.</p>
{% endblock %}