Skip to content

Commit

Permalink
🆙 update .btn.is-min animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfahan committed Mar 7, 2021
1 parent 4c594c1 commit 336eaed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
bottom: -1px;
left: 0;
transform: scaleX(0);
transform-origin: center;
transform-origin: right;
border-bottom: $borderwidth-default * 2 solid;
@include transition($button-transition-minimal-before);
}
Expand All @@ -226,6 +226,7 @@
@include hover-focus-active {
@include before {
transform: scaleX(1);
transform-origin: left;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/settings/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ $button-theme: $controls-theme !default;
$button-theme-light: $controls-theme-light !default;
$button-padding-x: $controls-padding-x * 1.13333 !default;

$button-transition-minimal-before: transform, border-bottom-color !default;
$button-transition-minimal-before: transform .35s, border-bottom-color !default;

$button-disabled-background: $controls-disabled-background !default;

0 comments on commit 336eaed

Please sign in to comment.