Skip to content

[Button] small button text not vertically centered with Roboto #29965

Open
@apokusin

Description

@apokusin

Current behavior 😯

The text inside of a button with size="small" is not centered vertically. This is especially obvious when used with an icon or a contained/outlined button.

Expected behavior 🤔

The text inside of a button with size="small" is centered vertically.

Steps to reproduce 🕹

Steps:

  1. Use <Button size="small">text</Button>
  2. Observe text

Context 🔦

Codesandbox link

Screenshots:
Medium (alignment ok)
medium

Small (text too high)
small

Your environment 🌎

`npx @mui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Metadata

Metadata

Assignees

Labels

bug 🐛Something doesn't workcomponent: buttonThis is the name of the generic UI component, not the React module!design: materialThis is about Material Design, please involve a visual or UX designer in the process

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions