Skip to content
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
@nikclayton

Description

@nikclayton

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.4
  • AngularJS Material Version: 1.1.4 (latest at the time of writing).

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 59.0.3071.115 (Official Build) (64-bit)
  • OS: * Ubuntu 14.04
  • Stack Traces: N/A

Metadata

Metadata

Assignees

Labels

P3: importantImportant issues that really should be fixed when possible.g3: reportedThe issue was reported by an internal or external product team.hotlist: animationsseverity: performanceThis issue causes a significant performance degradationtype: enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions