Skip to content

Commit

Permalink
Use div for masthead description container. Fixes #111
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Feb 7, 2023
1 parent 2c6f925 commit 735ade0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-govuk/components/masthead/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
{{ params.title.html | safe if params.title.html else params.title.text }}
</h1>
{% endif %}
{% if params.description %}
<p class="x-govuk-masthead__description{%- if params.description.classes %} {{ params.description.classes }}{% endif %}">
{% if params.description.html %}
<div class="x-govuk-masthead__description{%- if params.description.classes %} {{ params.description.classes }}{% endif %}">
{{ params.description.html | safe if params.description.html else params.description.text }}
</p>
</div>
{% endif %}
{% if params.startButton %}
{{ govukButton({
Expand Down

0 comments on commit 735ade0

Please sign in to comment.