Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

fbasso
Copy link
Member

@fbasso fbasso commented Jul 10, 2018

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.

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">
Copy link
Member

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>

Copy link
Member

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.

Copy link
Member

@benouat benouat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be merged

Copy link
Member

@maxokorokov maxokorokov left a 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?

@pkozlowski-opensource
Copy link
Member

@maxokorokov I would consider this a fix. Merged.

@fbasso fbasso deleted the accordion branch August 23, 2018 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants