Skip to content

[Typography] Ascender/descender escape line-height #18659

@LorenzHenk

Description

@LorenzHenk

Characters like g and Ü are partially displayed out of the Typography component when using variant h1, h2 or h3.
If used in combination with the overflow: hidden style, these parts are cut off.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Letters get cut off on top and bottom.

Expected Behavior 🤔

The whole text should be completely visible, not letters should be cut off.

Steps to Reproduce 🕹

Edit Material demo

Context 🔦

I have a page wrapper with overflow: auto. In the page wrapper, the first component at the top is my heading (Typography variant h2). If the title text is "Überraschung", the dots above the "U" are partially cut off.

Your Environment 🌎

Tech Version
Material-UI v4.7.1
Browser Firefox
Font Roboto
OS Fedora 30

Metadata

Metadata

Assignees

Labels

good first issueGreat for first contributions. Enable to learn the contribution process.scope: typographyChanges related to typography.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions