Skip to content

Commit

Permalink
addresses Nicks comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuk2012 committed May 10, 2019
1 parent 38e63c7 commit 12cb46a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
// text when focussed.
@include govuk-compatibility(govuk_template) {
&:link:focus {
outline-color: transparent;
color: $govuk-button-text-colour;
}
}
Expand All @@ -81,15 +80,11 @@
border: 0;
}

// Ordering of this pseudo selector is important to ensure
// It replaces hover state when element is focussed and mouse is hovering
&:hover {
background-color: $govuk-button-hover-colour;
}

// Ordering of this pseudo selector is important to ensure
// It replaces hover state when element is focussed and mouse is hovering
&:focus {
&:focus {
outline-color: transparent;
color: $govuk-focus-text-colour;
background-color: $govuk-focus-colour;
Expand Down Expand Up @@ -196,8 +191,6 @@
background-color: $govuk-secondary-button-hover-colour;
}

// Ordering of this pseudo selector is important to ensure
// It replaces hover state when element is focussed and mouse is hovering
&:focus {
color: $govuk-focus-text-colour;
background-color: $govuk-focus-colour;
Expand Down Expand Up @@ -232,8 +225,6 @@
background-color: $govuk-warning-button-hover-colour;
}

// Ordering of this pseudo selector is important to ensure
// It replaces hover state when element is focussed and mouse is hovering
&:focus {
color: $govuk-focus-text-colour;
background-color: $govuk-focus-colour;
Expand Down

0 comments on commit 12cb46a

Please sign in to comment.