From 9ec80bde4ac56981eaf26386645d23e612b2ab39 Mon Sep 17 00:00:00 2001 From: Vanita Barrett Date: Thu, 15 Oct 2020 10:03:12 +0100 Subject: [PATCH] Use new error link styles in error summary As part of the notification banner work, we introduced a new govuk-link-style-error mixin to automatically apply error colours to links (including visited and hover styles). We should apply these styles to the error summary component so things are consistent. The error summary doesn't currently have visited/hover styles for links, which isn't great, so this change adds those styles. --- src/govuk/components/error-summary/_index.scss | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/govuk/components/error-summary/_index.scss b/src/govuk/components/error-summary/_index.scss index 4407797a56..34e7aa8688 100644 --- a/src/govuk/components/error-summary/_index.scss +++ b/src/govuk/components/error-summary/_index.scss @@ -37,17 +37,7 @@ .govuk-error-summary__list a { @include govuk-typography-weight-bold; - - // Override default link styling to use error colour - &:link, - &:visited, - &:hover, - &:active { - color: $govuk-error-colour; - } - - &:focus { - @include govuk-focused-text; - } + @include govuk-link-common; + @include govuk-link-style-error; } }