Skip to content

Commit

Permalink
Merge pull request #2013 from alphagov/remove-grid-overrides-in-header
Browse files Browse the repository at this point in the history
Remove grid overrides in layout-header
  • Loading branch information
alex-ju authored Apr 15, 2021
2 parents 6b8714f + 9bc0e96 commit c67d9e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Tidy up untranslated content and formatting on accordion docs ([PR #1958](https://github.com/alphagov/govuk_publishing_components/pull/1958)) PATCH
* Add visual regression testing tool Percy ([PR #1013](https://github.com/alphagov/govuk_publishing_components/pull/1013)) PATCH
* Remove @extend from component Sass ([PR #2002](https://github.com/alphagov/govuk_publishing_components/pull/2002)) PATCH
* Remove grid overrides in layout-header ([PR #2013](https://github.com/alphagov/govuk_publishing_components/pull/2013)) PATCH

## 24.9.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
.gem-c-layout-header--search-left {
.gem-c-header__menu-button.govuk-header__menu-button {
margin-top: - govuk-spacing(7);
left: 0;
left: govuk-spacing(3);
}

.gem-c-header__nav-wrapper {
Expand Down Expand Up @@ -78,16 +78,6 @@
}
}

@include govuk-compatibility(govuk_template) {
.gem-c-layout-header__search.govuk-grid-column-one-third-from-desktop,
.gem-c-layout-header__logo.govuk-grid-column-one-third-from-desktop,
.gem-c-layout-header__search.govuk-grid-column-one-third,
.gem-c-layout-header__logo.govuk-grid-column-two-thirds {
padding-right: 0;
padding-left: 0;
}
}

.gem-c-layout-header__logo,
.gem-c-layout-header__search {
@include govuk-media-query($until: "tablet") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<header class="<%= header_classes.join(' ') %>" role="banner" data-module="govuk-header">
<div class="govuk-header__container <%= width_class %>">
<% if search_left %>
<div class="govuk-grid-row govuk-!-margin-left-0 govuk-!-margin-right-0">
<div class="govuk-grid-row">
<div class="gem-c-layout-header__logo govuk-grid-column-one-third-from-desktop">
<%= render "govuk_publishing_components/components/layout_header/header_logo", environment: environment, product_name: product_name %>
</div>
</div>
<div class="govuk-grid-row govuk-!-margin-left-0 govuk-!-margin-right-0">
<div class="govuk-grid-row">
<div class="govuk-grid-column-full govuk-grid-column-one-third-from-desktop gem-c-layout-header__search">
<%= render "govuk_publishing_components/components/layout_header/search" %>
</div>
Expand Down

0 comments on commit c67d9e4

Please sign in to comment.