Skip to content

Commit

Permalink
Use alterntive method of preventing margin collapse in masthead compo…
Browse files Browse the repository at this point in the history
…nent. Fixes #245
  • Loading branch information
paulrobertlloyd committed Aug 23, 2024
1 parent e51736f commit f1238cf
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 @@ -7,13 +7,9 @@ $x-govuk-masthead-text-colour: govuk-colour("white");

.x-govuk-masthead {
@include govuk-responsive-padding(4, "bottom");
padding-top: 0.1px; // Prevent margin collapse
background-color: $x-govuk-masthead-background-colour;
color: $x-govuk-masthead-text-colour;
display: flex; // Prevent margin collapse

> .govuk-width-container {
flex: 1;
}
}

.x-govuk-masthead__title {
Expand Down

0 comments on commit f1238cf

Please sign in to comment.