This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
checkbox: support disabling all animations #10819
Open
Description
Actual Behavior:
With $animate.enabled(false);
in effect, md-checkbox
elements still show an animation when they:
- Gain the focus (eg., through the user pressing TAB to move through the controls on a form).
- Are clicked to set/clear the value (this does not happen if the control has the focus and the user presses the spacebar to set/clear the value.
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/A