Skip to content

Commit

Permalink
Merge pull request #1014 from alphagov/update-link-styles
Browse files Browse the repository at this point in the history
Update link styles
  • Loading branch information
Vanita Barrett authored May 13, 2021
2 parents 01af5c7 + b87d2fe commit cfcb4f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/assets/sass/application.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// global styles for <a> and <p> tags
$govuk-global-styles: true;
$govuk-new-link-styles: true;

// We can't mount GOV.UK Frontend's assets at root as it's done automatically by the extensions framework.
$govuk-assets-path: '/govuk/assets/';
Expand Down
5 changes: 3 additions & 2 deletions app/assets/sass/patterns/_step-by-step-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");

.app-step-nav__button--controls {
@include step-nav-font(14, $line-height: 1);
@include govuk-link-common;
position: relative;
z-index: 1; // this and relative position stops focus outline underlap with border of accordion
padding: .5em 0;
text-decoration: underline;

.app-step-nav--large & {
@include step-nav-font(14, $tablet-size: 16, $line-height: 1);
Expand Down Expand Up @@ -271,7 +271,8 @@ $top-border: solid 2px govuk-colour("mid-grey", $legacy: "grey-3");
}

.app-step-nav__toggle-link {
text-decoration: underline;
@include govuk-link-common;
@include govuk-link-hover-decoration;
}
}

Expand Down
2 changes: 2 additions & 0 deletions docs/assets/sass/docs.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// We can't mount GOV.UK Frontend's assets at root as it's done automatically by the extensions framework.
$govuk-assets-path: '/govuk/assets/';

$govuk-new-link-styles: true;

@import "node_modules/govuk-frontend/govuk/all";

img{
Expand Down

0 comments on commit cfcb4f9

Please sign in to comment.