mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
feat(checkbox): add bg transition to md checkbox
This commit is contained in:
@ -25,6 +25,9 @@ $checkbox-md-icon-border-radius: 2px !default;
|
||||
$checkbox-md-icon-border-color-off: darken($list-md-border-color, 40%) !default;
|
||||
$checkbox-md-icon-border-color-on: map-get($colors-md, primary) !default;
|
||||
|
||||
$checkbox-md-transition-duration: 280ms !default;
|
||||
$checkbox-md-transition-easing: cubic-bezier(.4,0,.2,1) !default;
|
||||
|
||||
|
||||
ion-checkbox {
|
||||
position: relative;
|
||||
@ -44,6 +47,10 @@ ion-checkbox {
|
||||
border-style: $checkbox-md-icon-border-style;
|
||||
border-color: $checkbox-md-icon-border-color-off;
|
||||
background-color: $checkbox-md-icon-background-color-off;
|
||||
|
||||
transition-property: background;
|
||||
transition-duration: $checkbox-md-transition-duration;
|
||||
transition-timing-function: $checkbox-md-transition-easing;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user