Skip to content

Commit

Permalink
feat(accordion): revert changes for accordion key nav support (#4093)
Browse files Browse the repository at this point in the history
- Revert accordion component template, changed `button` to `div`
- Revert accordion demo `Custom html`, changed `button` to `div`
  • Loading branch information
EvilAlexei authored and valorkin committed Apr 5, 2018
1 parent e08890c commit 8a46e6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<accordion>
<accordion-group>
<button class="btn btn-link btn-block clearfix" accordion-heading>
<div class="pull-left float-left">I can have markup!</div>
<div accordion-heading class="clearfix">
I can have markup!
<span class="badge badge-secondary float-right pull-right">Some HTML here</span>
</button>
</div>
This is just some content to illustrate fancy headings.
</accordion-group>
<accordion-group>
<button class="btn btn-link" accordion-heading>
<div accordion-heading>
I can have markup, too!
</button>
</div>
<span class="badge badge-secondary center">And some HTML here</span>
</accordion-group>
</accordion>
4 changes: 2 additions & 2 deletions src/accordion/accordion-group.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div class="panel-title">
<div role="button" class="accordion-toggle"
[attr.aria-expanded]="isOpen">
<button class="btn btn-link" *ngIf="heading" [ngClass]="{'text-muted': isDisabled}">
<div *ngIf="heading" [ngClass]="{'text-muted': isDisabled}">
{{ heading }}
</button>
</div>
<ng-content select="[accordion-heading]"></ng-content>
</div>
</div>
Expand Down

0 comments on commit 8a46e6e

Please sign in to comment.