Skip to content

Commit

Permalink
Add alternative header layout
Browse files Browse the repository at this point in the history
This adds a new layout alternative that allows for search on the
left of the header and navigation items on the right to support
some layouts seen in whitehall pages.

It also corrects a stray div that was breaking the with-nav option
without a searchbox.
  • Loading branch information
maxgds committed Feb 4, 2020
1 parent 9bdceff commit 7ddd914
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
<div class="govuk-header__container <%= width_class %>">
<div class="gem-c-layout-header__logo govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/layout_header/header_logo", public_environment: public_environment, environment: environment, product_name: product_name %>
</div>
<div class="govuk-header__content gem-c-header__content">
<%= render "govuk_publishing_components/components/layout_header/navigation_items", navigation_items: navigation_items %>
</div>
</div>
<% if search %>
<div class="govuk-grid-column-one-third gem-c-layout-header__search">
<%= render "govuk_publishing_components/components/search", {
Expand Down

0 comments on commit 7ddd914

Please sign in to comment.