Skip to content

Commit

Permalink
Merge pull request #1676 from alphagov/fix-skip-link-losing-underline…
Browse files Browse the repository at this point in the history
…-on-focus

Fix skip link component focus style with global styles enabled
  • Loading branch information
NickColley authored Dec 12, 2019
2 parents cfca85f + 9b84259 commit 933c9cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ If you're using Nunjucks, you can now add classes to the character count compone

### Fixes

- [Pull request #1676: Fix skip link component focus style with global styles enabled](https://github.com/alphagov/govuk-frontend/pull/1676).
- [Pull request #1670: Make width-container margins more targetted to avoid specificity issues](https://github.com/alphagov/govuk-frontend/pull/1670).
- [Pull request #1655: Ensure components use public `govuk-media-query` mixin](https://github.com/alphagov/govuk-frontend/pull/1655).
- [Pull request #1638: Check component item arrays are not empty before outputting markup](https://github.com/alphagov/govuk-frontend/pull/1638).
Expand Down
6 changes: 6 additions & 0 deletions src/govuk/components/skip-link/_skip-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
&:focus {
outline: $govuk-focus-width solid $govuk-focus-colour;
background-color: $govuk-focus-colour;

// Undo unwanted changes when global styles are enabled
@if ($govuk-global-styles) {
box-shadow: none;
text-decoration: underline;
}
}
}
}

0 comments on commit 933c9cd

Please sign in to comment.