Skip to content

Commit 8a46e6e

Browse files
EvilAlexeivalorkin
authored andcommitted
feat(accordion): revert changes for accordion key nav support (#4093)
- Revert accordion component template, changed `button` to `div` - Revert accordion demo `Custom html`, changed `button` to `div`
1 parent e08890c commit 8a46e6e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<accordion>
22
<accordion-group>
3-
<button class="btn btn-link btn-block clearfix" accordion-heading>
4-
<div class="pull-left float-left">I can have markup!</div>
3+
<div accordion-heading class="clearfix">
4+
I can have markup!
55
<span class="badge badge-secondary float-right pull-right">Some HTML here</span>
6-
</button>
6+
</div>
77
This is just some content to illustrate fancy headings.
88
</accordion-group>
99
<accordion-group>
10-
<button class="btn btn-link" accordion-heading>
10+
<div accordion-heading>
1111
I can have markup, too!
12-
</button>
12+
</div>
1313
<span class="badge badge-secondary center">And some HTML here</span>
1414
</accordion-group>
1515
</accordion>

src/accordion/accordion-group.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<div class="panel-title">
55
<div role="button" class="accordion-toggle"
66
[attr.aria-expanded]="isOpen">
7-
<button class="btn btn-link" *ngIf="heading" [ngClass]="{'text-muted': isDisabled}">
7+
<div *ngIf="heading" [ngClass]="{'text-muted': isDisabled}">
88
{{ heading }}
9-
</button>
9+
</div>
1010
<ng-content select="[accordion-heading]"></ng-content>
1111
</div>
1212
</div>

0 commit comments

Comments
 (0)