Skip to content

Commit

Permalink
Move header tag outside of header component
Browse files Browse the repository at this point in the history
  • Loading branch information
querkmachine committed Apr 25, 2024
1 parent f977d7e commit 996e8d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</svg>
{% endset -%}

<header class="govuk-header {%- if params.classes %} {{ params.classes }}{% endif %}" data-module="govuk-header"
<div class="govuk-header {%- if params.classes %} {{ params.classes }}{% endif %}" data-module="govuk-header"
{{- govukAttributes(params.attributes) }}>
<div class="govuk-header__container {{ params.containerClasses | default("govuk-width-container", true) }}">
<div class="govuk-header__logo">
Expand Down Expand Up @@ -93,4 +93,4 @@
</div>
{% endif %}
</div>
</header>
</div>
2 changes: 2 additions & 0 deletions packages/govuk-frontend/src/govuk/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
}) }}
{% endblock %}

<header>
{% block header %}
{{ govukHeader({}) }}
{% endblock %}
</header>

{% block main %}
<div class="govuk-width-container {%- if containerClasses %} {{ containerClasses }}{% endif %}">
Expand Down

0 comments on commit 996e8d0

Please sign in to comment.