Skip to content

Commit

Permalink
Use alternative method of preventing margin collapse in masthead comp…
Browse files Browse the repository at this point in the history
…onent. Fixes #245
  • Loading branch information
paulrobertlloyd committed Aug 23, 2024
1 parent e51736f commit 28107a6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x-govuk/components/masthead/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ $x-govuk-masthead-text-colour: govuk-colour("white");
@include govuk-responsive-padding(4, "bottom");
background-color: $x-govuk-masthead-background-colour;
color: $x-govuk-masthead-text-colour;
display: flex; // Prevent margin collapse

> .govuk-width-container {
flex: 1;
}
padding-top: 0.1px; // Prevent margin collapse
}

.x-govuk-masthead__title {
Expand Down

0 comments on commit 28107a6

Please sign in to comment.