-
Notifications
You must be signed in to change notification settings - Fork 3.4k
checkbox: support disabling all animations #10819
Comments
This is related to #865 and #864.
I did some experimentation with the CodePen and found that the So in the end, this looks like an enhancement request to allow disabling the animations on |
Actual Behavior:
With
$animate.enabled(false);
in effect,md-checkbox
elements still show an animation when they:This causes flaky tests when driving the browser from a script and taking screenshots to verify expected behaviour.
Quick workaround is to inject the following CSS in to the app when it's under test:
*, *:before, *:after { transition: none !important }'
It's the
*:before
selector that's important, as the animations are attached to a md-checkbox:before pseudo-element.CodePen (or steps to reproduce the issue): *
https://codepen.io/anon/pen/WEvaNz
AngularJS Versions: *
AngularJS Version:
1.6.4AngularJS Material Version:
1.1.4 (latest at the time of writing).Additional Information:
Browser Type: *
ChromeBrowser Version: *
59.0.3071.115 (Official Build) (64-bit)OS: *
Ubuntu 14.04Stack Traces:
N/AThe text was updated successfully, but these errors were encountered: