-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(accordion): the markup should follow the boostrap one #2511
Conversation
class="card-body collapse" [class.show]="panel.isOpen" *ngIf="!destroyOnHide || panel.isOpen"> | ||
<ng-template [ngTemplateOutlet]="panel.contentTpl?.templateRef"></ng-template> | ||
class="collapse" [class.show]="panel.isOpen" *ngIf="!destroyOnHide || panel.isOpen"> | ||
<div class="card-body"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are also missing card
on here
From BS demo site
<div class="collapse" id="collapseExample">
<div class="card card-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</div>
</div>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, I overlooked it. card
and card-body
on the same element is for just a single collpase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
It's the missing part of the #2368. I guess it should have been a breaking change though... not sure about this one, @pkozlowski-opensource, WDYT?
@maxokorokov I would consider this a fix. Merged. |
Following the bootstrap example: https://getbootstrap.com/docs/4.1/components/collapse/#accordion-example
The card-body is inside the collapse element. It can be useful for animation.