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

Tag: center icon when no label is present (icon-only mode) #5067

Closed
jnoordsij opened this issue Jan 11, 2024 · 0 comments
Closed

Tag: center icon when no label is present (icon-only mode) #5067

jnoordsij opened this issue Jan 11, 2024 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@jnoordsij
Copy link

Describe the bug

Discussed in https://github.com/orgs/primefaces/discussions/871

Originally posted by jnoordsij January 9, 2024
Similarly to how it is possible to have an icon-only Button, it would be nice to be able to have an icon-only Tag. Currently there is some always-present margin on the icon, which means an icon in a Tag without label is not properly centered.

Possibly related: allowing choosing position of icon in Tag component like in Button.

Reproducer

https://codesandbox.io/p/devbox/primevue-tag-icon-uncentered-3drml7

PrimeVue version

3.46.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Create a Tag component that has
  • an icon value
  • no content

Expected behavior

The icon of the Tag to be properly centered.

@jnoordsij jnoordsij added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 11, 2024
@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 Jan 11, 2024
@tugcekucukoglu tugcekucukoglu added this to the 3.47.0 milestone Jan 11, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Jan 11, 2024
tugcekucukoglu added a commit that referenced this issue Jan 11, 2024
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