Skip to content

Commit

Permalink
Merge pull request #985 from alphagov/remove-global-govuk-list-anchor…
Browse files Browse the repository at this point in the history
…-styles

Remove anchor styling in govuk-lists
  • Loading branch information
NickColley authored Sep 6, 2018
2 parents b560c86 + 6adca30 commit 83f8a79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@
```
([PR #981](https://github.com/alphagov/govuk-frontend/pull/981))

- Remove anchor styling in govuk-lists

This was an undocumented feature of lists.

To migrate we recommend using adding `.govuk-link` class to any anchors within a govuk-list.

If you would like to replicate this functionality without adding a class you can also enable [global styles](https://github.com/alphagov/govuk-frontend/blob/master/docs/installation/installing-with-npm.md#global-styles) (Note: global styles are enabled by default in the GOV.UK Prototype Kit)

([PR #985](https://github.com/alphagov/govuk-frontend/pull/985))

- Pull Request Title goes here

Description goes here (optional)
Expand Down
18 changes: 0 additions & 18 deletions src/core/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@
}
}

%govuk-list a {
&:link {
color: $govuk-link-colour;
}

&:visited {
color: $govuk-link-visited-colour;
}

&:hover {
color: $govuk-link-hover-colour;
}

&:active {
color: $govuk-link-active-colour;
}
}

.govuk-list {
@extend %govuk-list;
}
Expand Down

0 comments on commit 83f8a79

Please sign in to comment.