Skip to content

Commit

Permalink
Add darker focus colour to header component
Browse files Browse the repository at this point in the history
  • Loading branch information
NickColley committed Sep 6, 2018
1 parent 841ba1b commit 29b2404
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@
text-decoration: underline;
}

// When focussed, the text colour needs to be darker to ensure that colour
// contrast is still acceptable
&:focus {
color: govuk-colour("black");
color: $govuk-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
Expand Down Expand Up @@ -239,6 +241,12 @@
&:visited {
color: $govuk-header-link-active;
}

// When focussed, the text colour needs to be darker to ensure that colour
// contrast is still acceptable
&:focus {
color: $govuk-text-colour;
}
}
}

Expand Down

0 comments on commit 29b2404

Please sign in to comment.