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

UButton icon breaks button position #2805

Open
dshulzhenko opened this issue Nov 29, 2024 · 2 comments
Open

UButton icon breaks button position #2805

dshulzhenko opened this issue Nov 29, 2024 · 2 comments
Labels
bug Something isn't working triage

Comments

@dshulzhenko
Copy link

dshulzhenko commented Nov 29, 2024

Environment

  • Operating System: Linux
  • Node Version: v20.5.1
  • Nuxt Version: 3.14.1592
  • CLI Version: 3.15.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: default
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Version

2.19.2

Reproduction

  • create blank nuxt project with nuxt-ui module
  • add to page some buttons
<div>
      <UButton icon="i-heroicons:plus-20-solid">Add</UButton>
      <UButton icon="ic:baseline-minus">Remove</UButton>
      <UButton>Clear</UButton>
</div>

Description

Buttons with icons (no matter icon set) jumping up raltive to clean text button
Image

Additional context

No response

Logs

@dshulzhenko dshulzhenko added bug Something isn't working triage labels Nov 29, 2024
@EvertonWingert
Copy link

This issue only occurs when the icon is positioned on the leading (left) side of the button.

@dshulzhenko
Copy link
Author

dshulzhenko commented Nov 30, 2024

Some new details: jumping appear on pure, no styled div. Have to add "flex" to solve problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants