Skip to content

Commit

Permalink
Ensure any global link styles are overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
36degrees committed Mar 2, 2018
1 parent d5a9d8b commit 39b615c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
box-shadow: 0 $button-shadow-size 0 $govuk-button-shadow-colour; // s0
font-family: $govuk-font-stack;
text-align: center;
text-decoration: none;
vertical-align: top;
cursor: pointer;
-webkit-appearance: none;
Expand All @@ -38,6 +37,15 @@
width: auto;
}

// Ensure that any global link styles are overridden
&:link,
&:visited,
&:active,
&:hover {
color: $govuk-button-text-colour;
text-decoration: none;
}

// Fix unwanted button padding in Firefox
&:-moz-focus-inner {
padding: 0;
Expand Down

0 comments on commit 39b615c

Please sign in to comment.