Skip to content

Commit

Permalink
fix(primeng/p-button): classes for custom icon template, normalize he…
Browse files Browse the repository at this point in the history
…ight

Fixes #13139.
  • Loading branch information
volvachev committed Sep 23, 2023
1 parent 396297a commit 2d2786d
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export class Button implements AfterContentInit {
'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,
'p-disabled': this.disabled || this.loading,
'p-button-loading': this.loading,
'p-button-loading-label-only': this.loading && !this.icon && this.label && !this.loadingIcon && this.iconPos === 'left'
'p-button-loading-label-only': this.loading && !(this.icon || this.iconTemplate) && this.label && !this.loadingIcon && this.iconPos === 'left'
};
}

Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-dark-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-dark-indigo/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-dark-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-dark-teal/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-light-blue/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-light-indigo/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-light-purple/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/lara-light-teal/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/soho-dark/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/soho-light/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
1 change: 1 addition & 0 deletions src/assets/components/themes/tailwind-light/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,7 @@ p-treeselect.p-treeselect-clearable .p-treeselect-clear-icon {
.p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.p-button.p-button-icon-only .p-button-icon-left,
.p-button.p-button-icon-only .p-button-icon-right {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@
.landing-themes .p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.landing-themes .p-button.p-button-icon-only .p-button-icon-left,
.landing-themes .p-button.p-button-icon-only .p-button-icon-right {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@
.landing-themes .p-button.p-button-icon-only {
width: 3rem;
padding: 0.75rem 0;
height: 2.85rem;
}
.landing-themes .p-button.p-button-icon-only .p-button-icon-left,
.landing-themes .p-button.p-button-icon-only .p-button-icon-right {
Expand Down

0 comments on commit 2d2786d

Please sign in to comment.