Skip to content

Commit

Permalink
Avoid multiple flow content in caption headings
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Dec 4, 2023
1 parent 2f9ff64 commit 25fb6bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/partials/_example.njk
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@
<caption class="govuk-table__caption{% if table.slug == 'primary' %} govuk-visually-hidden{% endif %}">
<h3 class="govuk-heading-m">
{{ table.name | safe }}
{% if table.description %}
<span class="govuk-body govuk-!-display-block govuk-!-margin-top-2">{{ table.description | safe }}</span>
{% endif %}
</h3>
{% if table.description %}
<p class="govuk-body">{{ table.description | safe }}</span>
{% endif %}
</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
Expand Down

0 comments on commit 25fb6bb

Please sign in to comment.