chore(checkbox): remove unnecessary will-change (#2743)

Removes a couple of unnecessary usages of `will-change` in the checkbox. They are redundant, because the properties being animated aren't problematic to transition in the first place (`border-color`, `background-color` and `opacity`). In general, we should avoid adding `will-change` like this, until we actually notice a performance issue, and even in that case it should be added right before an animation is supposed to happen.
This commit is contained in:
Kristiyan Kostadinov
2017-01-24 23:13:40 +01:00
committed by Andrew Seguin
parent 61a37d432d
commit 5b7698939e
-2
View File
@@ -240,7 +240,6 @@ md-checkbox {
background-color: transparent;
border: $md-checkbox-border-width solid;
transition: border-color $md-checkbox-transition-duration $md-linear-out-slow-in-timing-function;
will-change: border-color;
}
.md-checkbox-background {
@@ -252,7 +251,6 @@ md-checkbox {
transition: background-color $md-checkbox-transition-duration
$md-linear-out-slow-in-timing-function,
opacity $md-checkbox-transition-duration $md-linear-out-slow-in-timing-function;
will-change: background-color, opacity;
}
.md-checkbox-checkmark {