Skip to content

Commit

Permalink
Fixed #15694 | FileUpload: use Button component for choose button
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 24, 2024
1 parent f76316c commit 3426766
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/fileupload/fileupload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ import { FileBeforeUploadEvent, FileProgressEvent, FileRemoveEvent, FileSelectEv
/>
<div class="p-fileupload-buttonbar" [attr.data-pc-section]="'buttonbar'">
<ng-container *ngIf="!headerTemplate">
<span
class="p-button p-component p-fileupload-choose"
<p-button
styleClass="p-fileupload-choose"
[ngClass]="{ 'p-focus': focus, 'p-disabled': disabled || isChooseDisabled() }"
(focus)="onFocus()"
(blur)="onBlur()"
Expand Down Expand Up @@ -92,7 +92,7 @@ import { FileBeforeUploadEvent, FileProgressEvent, FileRemoveEvent, FileSelectEv
</span>
</ng-container>
<span class="p-button-label" [attr.data-pc-section]="'choosebuttonlabel'">{{ chooseButtonLabel }}</span>
</span>
</p-button>
<p-button *ngIf="!auto && showUploadButton" type="button" [label]="uploadButtonLabel" (onClick)="upload()" [disabled]="!hasFiles() || isFileLimitExceeded()" [styleClass]="uploadStyleClass">
<span *ngIf="uploadIcon" [ngClass]="uploadIcon" [attr.aria-hidden]="true" class="p-button-icon p-button-icon-left"></span>
Expand Down

0 comments on commit 3426766

Please sign in to comment.