Skip to content

Commit 5482db2

Browse files
icfantvwesleycho
authored andcommitted
docs(accordion): fix accordion demo
* fix accordion demo for last panel * last panel was previously the markup example so moving just the close toggle was not sufficient and moving the markup as well would have rendered that specific accordion example obsolete. so this restores the markup accordion back to original and moves to the last accordion example. Closes angular-ui#4344
1 parent 31e04a8 commit 5482db2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/accordion/docs/demo.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ <h4 class="panel-title" style="color:#fa39c3">
3636
<button type="button" class="btn btn-default btn-sm" ng-click="addItem()">Add Item</button>
3737
<div ng-repeat="item in items">{{item}}</div>
3838
</accordion-group>
39-
<accordion-group>
40-
<accordion-heading>
41-
I can have markup, too! <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.open, 'glyphicon-chevron-right': !status.open}"></i>
42-
</accordion-heading>
43-
This is just some content to illustrate fancy headings.
44-
</accordion-group>
4539
<accordion-group heading="Custom template" template-url="group-template.html">
4640
Hello
4741
</accordion-group>
48-
<accordion-group heading="Delete account" panel-class="panel-danger" is-open="status.open">
42+
<accordion-group heading="Delete account" panel-class="panel-danger">
4943
<p>Please, to delete your account, click the button below</p>
5044
<button class="btn btn-danger">Delete</button>
5145
</accordion-group>
46+
<accordion-group is-open="status.open">
47+
<accordion-heading>
48+
I can have markup, too! <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.open, 'glyphicon-chevron-right': !status.open}"></i>
49+
</accordion-heading>
50+
This is just some content to illustrate fancy headings.
51+
</accordion-group>
5252
</accordion>
5353
</div>

0 commit comments

Comments
 (0)