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 text alignment issue: Text only centers properly with flexbox #3251

Open
efeese11 opened this issue Feb 6, 2025 · 0 comments
Open
Labels
bug Something isn't working triage v3 #1289

Comments

@efeese11
Copy link

efeese11 commented Feb 6, 2025

Environment

  • Operating System: 'Linux (Ubuntu)'
  • Node Version: v22.12.0
  • Nuxt Version: v3.0.0-alpha.12
  • Package Manager: [email protected]

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-alpha.12

Reproduction

Steps to Reproduce

Create a button in a Nuxt.js project.

Add text to the button.

Try to center the text using text-align: center or margin: auto.

Observe that the text does not center properly.

Switch to using display: flex; justify-content: center; align-items: center; and observe that the text centers correctly.

Description

I'm experiencing an issue where the text inside a button only centers correctly when using flexbox. When using traditional methods like text-align: center or margin: auto, the text does not align properly.

Additional context

Image

Logs

@efeese11 efeese11 added bug Something isn't working triage v3 #1289 labels Feb 6, 2025
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 v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant