Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e6d053d

Browse files
committed
fix(ngAnimate): rename ng-animate-anchor to ng-anchor
BREAKING CHANGE: if your CSS code made use of the `ng-animate-anchor` CSS class for referencing the anchored animation element then your code must now use `ng-anchor` instead.
1 parent e001400 commit e6d053d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

css/angular.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ ng\:form {
1414
visibility:hidden;
1515
}
1616

17-
.ng-animate-anchor {
17+
.ng-anchor {
1818
position:absolute;
1919
}

src/ngAnimate/animateCssDriver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var $$AnimateCssDriverProvider = ['$$animationProvider', function($$animationPro
44
$$animationProvider.drivers.push('$$animateCssDriver');
55

66
var NG_ANIMATE_SHIM_CLASS_NAME = 'ng-animate-shim';
7-
var NG_ANIMATE_ANCHOR_CLASS_NAME = 'ng-animate-anchor';
7+
var NG_ANIMATE_ANCHOR_CLASS_NAME = 'ng-anchor';
88
var NG_ANIMATE_ANCHOR_SUFFIX = '-anchor';
99

1010
var NG_OUT_ANCHOR_CLASS_NAME = 'ng-anchor-out';

test/ngAnimate/animateCssDriverSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ describe("ngAnimate $$animateCssDriver", function() {
599599
expect(anchorDetails.event).toBeFalsy();
600600
}));
601601

602-
it("should add the `ng-animate-anchor` class to the cloned anchor element",
602+
it("should add the `ng-anchor` class to the cloned anchor element",
603603
inject(function($rootElement, $$rAF) {
604604

605605
var fromAnchor = jqLite('<div></div>');
@@ -620,7 +620,7 @@ describe("ngAnimate $$animateCssDriver", function() {
620620
}).start();
621621

622622
var clonedAnchor = captureLog.pop().element;
623-
expect(clonedAnchor).toHaveClass('ng-animate-anchor');
623+
expect(clonedAnchor).toHaveClass('ng-anchor');
624624
}));
625625

626626
it("should add and remove the `ng-animate-shim` class on the in anchor element during the animation",

0 commit comments

Comments
 (0)