Skip to content

Commit 8466d39

Browse files
committed
feat(checkbox): add bg transition to md checkbox
1 parent 9749b06 commit 8466d39

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ionic/components/checkbox/checkbox.md.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ $checkbox-md-icon-border-radius: 2px !default;
2525
$checkbox-md-icon-border-color-off: darken($list-md-border-color, 40%) !default;
2626
$checkbox-md-icon-border-color-on: map-get($colors-md, primary) !default;
2727

28+
$checkbox-md-transition-duration: 280ms !default;
29+
$checkbox-md-transition-easing: cubic-bezier(.4,0,.2,1) !default;
30+
2831

2932
ion-checkbox {
3033
position: relative;
@@ -44,6 +47,10 @@ ion-checkbox {
4447
border-style: $checkbox-md-icon-border-style;
4548
border-color: $checkbox-md-icon-border-color-off;
4649
background-color: $checkbox-md-icon-background-color-off;
50+
51+
transition-property: background;
52+
transition-duration: $checkbox-md-transition-duration;
53+
transition-timing-function: $checkbox-md-transition-easing;
4754
}
4855

4956

0 commit comments

Comments
 (0)