From 599faa32050d9e150babf8f761e743b332cac7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 26 Jun 2023 15:57:05 +0300 Subject: [PATCH] Fixed #4083 - Button: Button width is to small when have a icon and a badge only --- components/lib/button/BaseButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/button/BaseButton.vue b/components/lib/button/BaseButton.vue index 8bcdc9742..8f57b99b2 100644 --- a/components/lib/button/BaseButton.vue +++ b/components/lib/button/BaseButton.vue @@ -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,