Skip to content

Commit

Permalink
Ensure that button looks like its being pressed in
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuk2012 committed May 8, 2019
1 parent ee516a1 commit 7830d70
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@
&:focus {
color: govuk-colour("black");
background-color: govuk-colour("yellow");
box-shadow: 0 4px 0 govuk-colour("black");
box-shadow: 0 2px 0 govuk-colour("black");
}

&:active {
// Bump the button down by 2px so it looks like its being pressed in
position: relative;
top: 2px;

border: $govuk-border-width-form-element solid govuk-colour("yellow");
color: govuk-colour("white");
background-color: $govuk-button-hover-colour;
Expand Down Expand Up @@ -198,7 +202,7 @@
&:focus {
color: govuk-colour("black");
background-color: govuk-colour("yellow");
box-shadow: 0 4px 0 govuk-colour("black");
box-shadow: 0 2px 0 govuk-colour("black");
}
}

Expand Down Expand Up @@ -235,7 +239,7 @@
&:focus {
color: govuk-colour("black");
background-color: govuk-colour("yellow");
box-shadow: 0 4px 0 govuk-colour("black");
box-shadow: 0 2px 0 govuk-colour("black");
}
}

Expand Down

0 comments on commit 7830d70

Please sign in to comment.