Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Kanatorabo opened this issue Jun 26, 2023 · 0 comments
Closed

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

Kanatorabo opened this issue Jun 26, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Kanatorabo
Copy link

Kanatorabo commented Jun 26, 2023

Describe the bug

There is a bug with the button when used with an icon and a badge only. When there is an icon and no label the css class .p-button.p-button-icon-only with a fixed with is set. Then the button will not expand accordingly to the with of the number in the badge.

PR

#4084

Reproducer

https://codesandbox.io/s/kind-moser-j9x2rv?file=/src/App.vue

PrimeVue version

3.29.2

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Chrome Version 114.0.5735.133 (Official Build) (arm64)

Steps to reproduce the behavior

Create a Button with a Badge and an icon but without a label. The Badge must haven a number with multiple letters. Than the number is not visible completly.

Expected behavior

To see the whole number

@Kanatorabo Kanatorabo added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 26, 2023
@Kanatorabo Kanatorabo changed the title Button: Button with is to small when have a icon and a badge only Button: Button width is to small when have a icon and a badge only Jun 26, 2023
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jun 26, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Jun 26, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.30.0 milestone Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants