Skip to content

Commit

Permalink
fix: active states
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Raider committed Mar 22, 2019
1 parent 12cec17 commit a390d0b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/core/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
}

&:focus {
background-color: $ray-color-blue-70;
border-color: $ray-color-blue-70;
box-shadow: 0 0 0 3px transparentize($ray-color-blue-50, 0.75);
}

&:active {
box-shadow: 0 0 0 3px transparentize($ray-color-blue-50, 0.75);
border-color: $ray-color-blue-70;
background-color: $ray-color-blue-70;
}

&.#{$ray-class-prefix}button--danger {
Expand Down Expand Up @@ -99,11 +99,11 @@
}

&:focus {
background-color: $ray-color-blue-20;
box-shadow: 0 0 0 3px transparentize($ray-color-blue-50, 0.75);
}

&:active {
box-shadow: 0 0 0 3px transparentize($ray-color-blue-50, 0.75);
background-color: $ray-color-blue-20;
}

&.#{$ray-class-prefix}button--danger {
Expand Down Expand Up @@ -157,10 +157,15 @@

&:hover {
color: $ray-color-blue-60;
background-color: $ray-color-gray-02;
}

&:focus {
color: $ray-color-blue-70;
box-shadow: 0 0 0 3px transparentize($ray-color-blue-50, 0.75);
}

&:active {
background-color: $ray-color-gray-10;
}

&.#{$ray-class-prefix}button--danger {
Expand All @@ -171,7 +176,7 @@
}

&:focus {
color: $ray-color-red-70;
box-shadow: 0 0 0 3px transparentize($ray-color-red-50, 0.75);
}

&[disabled] {
Expand Down

0 comments on commit a390d0b

Please sign in to comment.