Skip to content

Commit

Permalink
Use new error link styles in error summary
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vanita Barrett committed Oct 21, 2020
1 parent 62b5b15 commit 9ec80bd
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/govuk/components/error-summary/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 9ec80bd

Please sign in to comment.