Skip to content

Commit

Permalink
Fixed #4083 - Button: Button width is to small when have a icon and a…
Browse files Browse the repository at this point in the history
… badge only
  • Loading branch information
tugcekucukoglu committed Jun 26, 2023
1 parent 423e88c commit 599faa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/button/BaseButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const classes = {
root: ({ instance, props }) => [
'p-button p-component',
{
'p-button-icon-only': instance.hasIcon && !props.label,
'p-button-icon-only': instance.hasIcon && !props.label && !props.badge,
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
'p-disabled': instance.$attrs.disabled || instance.$attrs.disabled === '' || props.loading,
'p-button-loading': props.loading,
Expand Down

0 comments on commit 599faa3

Please sign in to comment.