Skip to content

Commit

Permalink
Compensate for height added by the separator border
Browse files Browse the repository at this point in the history
  • Loading branch information
hannalaakso committed Feb 1, 2021
1 parent d94b17f commit 27a17d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/govuk/components/cookie-banner/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@

// Visually separate the cookie banner from content underneath
// when user changes colours in their browser.
border-bottom: $govuk-focus-width solid transparent;
border-bottom: $govuk-border-width solid transparent;

background-color: govuk-colour("light-grey", $legacy: "grey-3");
}

.govuk-cookie-banner__container[hidden] {
.govuk-cookie-banner__message {
margin-bottom: -$govuk-border-width;
}
// Support older browsers which don't hide elements with the `hidden` attribute
display: none;
}
Expand Down

0 comments on commit 27a17d5

Please sign in to comment.