Skip to content

Commit

Permalink
fix: button height issue, fixes #17328
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Jan 8, 2025
1 parent 401795e commit 47de0cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/primeng/src/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ export class ButtonDirective extends BaseComponent implements AfterViewInit, OnD
[attr.type]="type"
[attr.aria-label]="ariaLabel"
[ngStyle]="style"
style="height:100%"
[disabled]="disabled || loading"
[ngClass]="buttonClass"
(click)="onClick.emit($event)"
Expand All @@ -461,7 +460,7 @@ export class ButtonDirective extends BaseComponent implements AfterViewInit, OnD
<span *ngIf="icon && !iconTemplate && !_iconTemplate" [class]="icon" [ngClass]="iconClass()" [attr.data-pc-section]="'icon'"></span>
<ng-template [ngIf]="!icon && (iconTemplate || _iconTemplate)" *ngTemplateOutlet="iconTemplate || _iconTemplate; context: { class: iconClass() }"></ng-template>
</ng-container>
<span class="p-button-label" [attr.aria-hidden]="icon && !label" *ngIf="!contentTemplate && !_contentTemplate && label" [attr.data-pc-section]="'label'">{{ label }}</span>
<span class="p-button-label" [attr.aria-hidden]="icon && !label" *ngIf="!contentTemplate && !_contentTemplate" [attr.data-pc-section]="'label'">{{ label || 'nbsp;' }}</span>
<p-badge *ngIf="!contentTemplate && !_contentTemplate && badge" [value]="badge" [severity]="badgeSeverity"></p-badge>
</button>
`,
Expand Down

0 comments on commit 47de0cb

Please sign in to comment.