forked from angular-ui/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(popover): animations with ngAnimate
- Animations didn't work because the class attribute was mangled during compilation due to the way class attributes are merged on directives with `replace: true` - Rename attribute to popup-class - Refactor to rename variables named "class" as it's a keyword and also looks weird in editors Fixes angular-ui#3375
- Loading branch information
Showing
5 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="tooltip {{placement}} {{class}}" ng-class="{ in: isOpen(), fade: animation() }"> | ||
<div class="tooltip {{placement}} {{popupClass}}" ng-class="{ in: isOpen(), fade: animation() }"> | ||
<div class="tooltip-arrow"></div> | ||
<div class="tooltip-inner" ng-bind-html="contentExp()"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="tooltip {{placement}} {{class}}" ng-class="{ in: isOpen(), fade: animation() }"> | ||
<div class="tooltip {{placement}} {{popupClass}}" ng-class="{ in: isOpen(), fade: animation() }"> | ||
<div class="tooltip-arrow"></div> | ||
<div class="tooltip-inner" bind-html-unsafe="content"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="tooltip {{placement}} {{class}}" ng-class="{ in: isOpen(), fade: animation() }"> | ||
<div class="tooltip {{placement}} {{popupClass}}" ng-class="{ in: isOpen(), fade: animation() }"> | ||
<div class="tooltip-arrow"></div> | ||
<div class="tooltip-inner" ng-bind="content"></div> | ||
</div> |