Skip to content

Commit

Permalink
Use existing code to prevent duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
sbardian committed Apr 3, 2019
1 parent fbbcde3 commit fc3367c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@
text-shadow: 0 1px 0 #fff;
transform: none;
}

&.is-busy,
&.is-busy:disabled,
&.is-busy[aria-disabled="true"] {
animation: components-button__busy-animation 2500ms infinite linear;
background-size: 100px 100%;
background-image: repeating-linear-gradient(-45deg, $light-gray-500, $white 11px, $white 10px, $light-gray-500 20px);
opacity: 1;
}
}

&.is-primary {
Expand Down Expand Up @@ -184,7 +175,10 @@
@include button-style__focus-active;
}

&.is-busy {
&.is-busy,
&.is-default.is-busy,
&.is-default.is-busy:disabled,
&.is-default.is-busy[aria-disabled="true"] {
animation: components-button__busy-animation 2500ms infinite linear;
background-size: 100px 100%;
background-image: repeating-linear-gradient(-45deg, $light-gray-500, $white 11px, $white 10px, $light-gray-500 20px);
Expand Down

0 comments on commit fc3367c

Please sign in to comment.