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(alert): new css class for close button #3976
Conversation
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!
@fbasso, could you take a look too, please? Please merge if OK.
I've added the reference to it in the main BS5 issue
P.S. We're going to need the same kind of PR for the toast, if you're up to it. And thanks @nbittich for helping out. |
Sure I will have a look to the toast this evening after work. I was working on the accordion yesterday, did something like below, unfortunately it breaks the "custom" one in the demo. Can look at it also if needed. <ng-template #t ngbPanelHeader let-panel>
<div class="accordion-header">
<button class="accordion-button" [ngbPanelToggle]="panel">
{{panel.title}}<ng-template [ngTemplateOutlet]="panel.titleTpl?.templateRef"></ng-template>
</button>
</div>
</ng-template>
<ng-template ngFor let-panel [ngForOf]="panels">
<div [class]="'accordion-item ' + (panel.cardClass || '')">
<div role="tab" id="{{panel.id}}-header" [class]="' ' + (panel.type ? 'bg-'+panel.type: type ? 'bg-'+type : '')">
<ng-template [ngTemplateOutlet]="panel.headerTpl?.templateRef || t"
[ngTemplateOutletContext]="{$implicit: panel, opened: panel.isOpen}"></ng-template>
</div>
<div id="{{panel.id}}" role="tabpanel" [attr.aria-labelledby]="panel.id + '-header'" [class]="'accordion-collapse'"
*ngIf="!destroyOnHide || panel.isOpen || panel.transitionRunning">
<div class="accordion-body">
<ng-template [ngTemplateOutlet]="panel.contentTpl?.templateRef || null"></ng-template>
</div>
</div>
</div>
</ng-template>
|
Co-authored-by: Nordine Bittich <nordine.bittich@ext.europa.ec.eu>
Co-authored-by: Nordine Bittich <nordine.bittich@ext.europa.ec.eu>
Co-authored-by: Nordine Bittich <nordine.bittich@ext.europa.ec.eu>
Co-authored-by: Nordine Bittich <nordine.bittich@ext.europa.ec.eu>
Before submitting a pull request, please make sure you have at least performed the following: