Skip to content

Commit

Permalink
Fixed #17080 | Panel: toggle button is not rounded, missing p-button-…
Browse files Browse the repository at this point in the history
…rounded class
  • Loading branch information
mehmetcetin01140 committed Dec 24, 2024
1 parent e1c84eb commit d4b0ebf
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions packages/primeng/src/panel/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,21 @@ export interface PanelHeaderIconsTemplateContext {
(keydown)="onKeyDown($event)"
[buttonProps]="toggleButtonProps"
>
<ng-container *ngIf="!headerIconsTemplate && !_headerIconsTemplate && !toggleButtonProps?.icon">
<ng-container *ngIf="!collapsed">
<span *ngIf="expandIcon" [class]="expandIcon"></span>
<MinusIcon *ngIf="!expandIcon" />
<ng-template #icon>
<ng-container *ngIf="!headerIconsTemplate && !_headerIconsTemplate && !toggleButtonProps?.icon">
<ng-container *ngIf="!collapsed">
<span *ngIf="expandIcon" [class]="expandIcon"></span>
<MinusIcon *ngIf="!expandIcon" />
</ng-container>
<ng-container *ngIf="collapsed">
<span *ngIf="collapseIcon" [class]="collapseIcon"></span>
<PlusIcon *ngIf="!collapseIcon" />
</ng-container>
</ng-container>
<ng-container *ngIf="collapsed">
<span *ngIf="collapseIcon" [class]="collapseIcon"></span>
<PlusIcon *ngIf="!collapseIcon" />
</ng-container>
</ng-container>
<ng-template *ngTemplateOutlet="headerIconsTemplate || _headerIconsTemplate; context: { $implicit: collapsed }"></ng-template>
<ng-template *ngTemplateOutlet="headerIconsTemplate || _headerIconsTemplate; context: { $implicit: collapsed }"></ng-template>
</ng-template>
</p-button>
</div>
</div>
Expand Down

0 comments on commit d4b0ebf

Please sign in to comment.