Fixed #4083 - Button: Button width is to small when have a icon and a badge only

pull/4087/head
Tuğçe Küçükoğlu 2023-06-26 15:57:05 +03:00
parent 423e88c553
commit 599faa3205
1 changed files with 1 additions and 1 deletions

View File

@ -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,