Skip to content

Commit

Permalink
fix(button): restrict transitions to relevant properties (#6901)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandra Davila <aledavila@ibm.com>
  • Loading branch information
emyarod and Alessandra Davila committed Sep 24, 2020
1 parent ae7ed04 commit b86dcfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/components/button/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
border-radius: $button-border-radius;
outline: none;
cursor: pointer;
transition: all $duration--fast-01 motion(entrance, productive);
transition: background $duration--fast-01 motion(entrance, productive),
box-shadow $duration--fast-01 motion(entrance, productive),
border-color $duration--fast-01 motion(entrance, productive),
outline $duration--fast-01 motion(entrance, productive);

&:disabled,
&:hover:disabled,
Expand Down

0 comments on commit b86dcfb

Please sign in to comment.