From b41a3c74a68f6b76e9ef830782e7c34e9083cfd3 Mon Sep 17 00:00:00 2001 From: Mehmet Duran Date: Mon, 5 Dec 2016 15:49:14 +0000 Subject: [PATCH] Skiplink colour contrast Skiplink has the default link colour, which kept failing against $focus-colour background. Making the link colour $black for :focus and :visited states. --- source/assets/stylesheets/_accessibility.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/assets/stylesheets/_accessibility.scss b/source/assets/stylesheets/_accessibility.scss index bade62c1..c90bd0ae 100644 --- a/source/assets/stylesheets/_accessibility.scss +++ b/source/assets/stylesheets/_accessibility.scss @@ -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 {