Files
notifications-admin/app/templates/partials/templates/guidance-formatting-letters.html
Chris Hill-Scott 4df99bd27f 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.
2020-05-29 17:11:01 +01:00

32 lines
662 B
HTML

<h2 class="heading-medium">Formatting</h2>
<p class="govuk-body">
To put a heading in your template, use a hash:
</p>
<div class="panel panel-border-wide">
<p class="govuk-body">
# This is a heading
</p>
</div>
<p class="govuk-body">
To make bullet points, use asterisks:
</p>
<div class="panel panel-border-wide">
<p class="govuk-body">
* point 1<br/>
* point 2<br/>
* point 3<br/>
</p>
</div>
<p class="govuk-body">
To insert a page break, use three asterisks:
</p>
<div class="panel panel-border-wide">
<p class="govuk-body">
Content on page 1<br/>
<br/>
***<br/>
<br/>
Content on page 2<br/>
</p>
</div>