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

[material-ui][Button] Text is not vertically centered #40277

Closed
Absleepy opened this issue Dec 22, 2023 · 2 comments
Closed

[material-ui][Button] Text is not vertically centered #40277

Absleepy opened this issue Dec 22, 2023 · 2 comments
Assignees
Labels
component: button This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information

Comments

@Absleepy
Copy link

Absleepy commented Dec 22, 2023

Steps to reproduce 🕹

I am currently using the latest version of MUI, and I am experiencing an issue where the text inside a button is not vertically centered. Despite attempting adjustments such as line-height and padding, the issue persists. Upon searching, I discovered that the problem is associated with custom fonts. Specifically, when using sans-serif fonts, the alignment is correct. However, with custom fonts, the text appears to be top-aligned.

image

Current behavior 😯

No response

Expected behavior 🤔

No response

Context 🔦

No response

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
@Absleepy Absleepy added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 22, 2023
@zannager zannager added the component: button This is the name of the generic UI component, not the React module! label Dec 22, 2023
@oliviertassinari
Copy link
Member

oliviertassinari commented Dec 22, 2023

#29965 is not too far

But here it looks like a support request, a customization not done correctly. Impossible to tell for sure without a way to reproduce the bug.

@danilo-leal danilo-leal changed the title Mui button text are not vertically centered. [material-ui][Button] Text is not vertically centered Dec 22, 2023
@danilo-leal danilo-leal added package: material-ui Specific to @mui/material design This is about UI or UX design, please involve a designer and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 22, 2023
@oliviertassinari oliviertassinari added status: waiting for author Issue with insufficient information and removed design This is about UI or UX design, please involve a designer labels Sep 5, 2024
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

5 participants