mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
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:
@@ -13,7 +13,7 @@ Check your mobile number
|
||||
<div class="govuk-grid-column-two-thirds">
|
||||
<h1 class="heading-large">Check your mobile number</h1>
|
||||
|
||||
<p>Check your mobile phone number is correct and then resend the security code.</p>
|
||||
<p class="govuk-body">Check your mobile phone number is correct and then resend the security code.</p>
|
||||
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.mobile_number) }}
|
||||
|
||||
Reference in New Issue
Block a user