Skip to content

Commit

Permalink
Skiplink colour contrast
Browse files Browse the repository at this point in the history
Skiplink has the default link colour, which kept failing against $focus-colour
background. Making the link colour $black for :focus and :visited states.
  • Loading branch information
cfq committed Dec 9, 2016
1 parent 51cf397 commit b41a3c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/assets/stylesheets/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ a:focus {
.skiplink {
position: absolute;
left: -9999em;

/* Default link colour doesn't have enough contrast against $focus-colour */
&:focus,
&:visited {
color: $text-colour;
}
}

.skiplink:focus {
Expand Down

0 comments on commit b41a3c7

Please sign in to comment.