Skip to content

Commit

Permalink
feat(accordion): adding single 'active' class instead of open and close
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkatraman D committed Oct 15, 2014
1 parent 97dea2d commit 27e787f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/accordion/accordion-group.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<dd>
<a ng-click="isOpen = !isOpen" ng-class="{ opened: isOpen, closed: isOpen==false}" accordion-transclude="heading">{{heading}}</a>
<a ng-click="isOpen = !isOpen" ng-class="{ active: isOpen }" accordion-transclude="heading">{{heading}}</a>
<div class="content" ng-style="isOpen ? {display: 'block'} : {}" ng-transclude></div>
</dd>

0 comments on commit 27e787f

Please sign in to comment.