feat(Button): add transition when toggle disabled (#2089)

This commit is contained in:
neverland 2019-09-24 13:10:07 +08:00 committed by GitHub
parent b38672c8e6
commit 338df00e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@
line-height: 42px;
text-align: center;
vertical-align: middle;
transition: opacity @animation-duration-fast;
.theme(border-radius, '@button-border-radius');
-webkit-appearance: none;

View File

@ -33,6 +33,10 @@
@font-size-md: 14px;
@font-size-lg: 16px;
// Animation
@animation-duration-base: .3s;
@animation-duration-fast: .2s;
// Button
@button-default-color: @text-color;
@button-default-background-color: @white;