Skip to content

Commit

Permalink
Tweak comments
Browse files Browse the repository at this point in the history
These comments only really make sense when one immediately follows the other, but since the rules around forced colors were added they’ve been separated.

Tweak the comments so they work when each rule stands alone.
  • Loading branch information
36degrees committed Jun 2, 2021
1 parent c2caa62 commit cf53b67
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/govuk/components/header/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
.govuk-header__logotype {
display: inline-block;

// Add a gap between logo and any product name
// Add a gap after the logo in case it's followed by a product name. This
// gets removed later if the logotype is a :last-child.
margin-right: govuk-spacing(1);

// Prevent readability backplate from obscuring underline in Windows High
Expand All @@ -46,8 +47,8 @@
color: linktext;
}

// But remove it if there's nothing after the logo to keep hover and focus
// states neat
// Remove the gap after the logo if there's no product name to keep hover
// and focus states neat
&:last-child {
margin-right: 0;
}
Expand Down

0 comments on commit cf53b67

Please sign in to comment.