Skip to content

Commit

Permalink
Sidebar remove header if not showCloseIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Salvetti committed May 25, 2021
1 parent fe83f49 commit 2106753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const hideAnimation = animation([
'p-sidebar-left': (position === 'left' && !fullScreen), 'p-sidebar-right': (position === 'right' && !fullScreen),
'p-sidebar-top': (position === 'top' && !fullScreen), 'p-sidebar-bottom': (position === 'bottom' && !fullScreen),
'p-sidebar-full': fullScreen}" *ngIf="visible" [@panelState]="{value: 'visible', params: {transform: transformOptions, transition: transitionOptions}}" (@panelState.start)="onAnimationStart($event)" [ngStyle]="style" [class]="styleClass" role="complementary" [attr.aria-modal]="modal">
<div class="p-sidebar-header">
<button type="button" class="p-sidebar-close p-sidebar-icon p-link" *ngIf="showCloseIcon" (click)="close($event)" (keydown.enter)="close($event)" [attr.aria-label]="ariaCloseLabel" pRipple>
<div class="p-sidebar-header" *ngIf="showCloseIcon">
<button type="button" class="p-sidebar-close p-sidebar-icon p-link" (click)="close($event)" (keydown.enter)="close($event)" [attr.aria-label]="ariaCloseLabel" pRipple>
<span class="p-sidebar-close-icon pi pi-times"></span>
</button>
</div>
Expand Down

0 comments on commit 2106753

Please sign in to comment.