Skip to content

Commit

Permalink
Fix header with product name focus and hover state length
Browse files Browse the repository at this point in the history
  • Loading branch information
owenatgov committed Feb 16, 2022
1 parent 90d14d1 commit 6366f9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/govuk/components/header/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
// in Firefox
@include govuk-font($size: false, $weight: bold);

display: inline-block;
display: inline;
margin-right: govuk-spacing(2);
font-size: 30px; // We don't have a mixin that produces 30px font size
line-height: 1;
Expand All @@ -129,6 +129,9 @@
&:focus {
margin-bottom: 0;
border-bottom: 0;
// Replicate the focus box shadow but without the -2px y-offset of the first, yellow shadow
// This is to stop the logo getting cut off by the box shadow when focused on above a product name
box-shadow: 0 0 $govuk-focus-colour;
}
}

Expand Down

0 comments on commit 6366f9a

Please sign in to comment.