Skip to content

Commit

Permalink
fix(button): adds subtle active state
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraider committed Mar 22, 2019
1 parent 18ba126 commit 12cec17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/core/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
border-color: $ray-color-blue-70;
}

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

&.#{$ray-class-prefix}button--danger {
background-color: $ray-color-red-50;
border-color: $ray-color-red-50;
Expand All @@ -68,6 +72,10 @@
border-color: $ray-color-red-70;
}

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

&[disabled] {
background-color: $ray-color-red-20;
border-color: $ray-color-red-20;
Expand All @@ -94,6 +102,10 @@
background-color: $ray-color-blue-20;
}

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

&.#{$ray-class-prefix}button--danger {
border-color: $ray-color-red-50;
color: $ray-color-red-50;
Expand All @@ -106,6 +118,10 @@
background-color: $ray-color-red-20;
}

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

&[disabled] {
background-color: $ray-color-white;
border-color: rgba($ray-color-red-50, 0.4);
Expand Down

0 comments on commit 12cec17

Please sign in to comment.