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

fix(ui): Cropped letter descenders in TextOverflow #29696

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

vuluongj20
Copy link
Member

Due to the low line-height (1.1), the letter g's descender (the hook at the bottom) is cropped off. Setting line-height to 1.2 fixes this. I'm not sure why we used 1.1 in the first place (?). A value of 1.2 doesn't seem to noticeably affect the vertical alignment.

Before:
Screen Shot 2021-11-01 at 11 20 34 AM

After:
Screen Shot 2021-11-01 at 11 32 55 AM

Due to the low line-height (1.1), the letter g's descender (the hook at the bottom) is cropped off. Setting line-height to 1.2 fixes this.
@vuluongj20 vuluongj20 requested a review from a team as a code owner November 1, 2021 18:37
Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had used 1.1 as it was the smallest value that would fix the problem I was seeing on a few of the pages I was working on as they had clipped descenders.

@vuluongj20 vuluongj20 merged commit f4cbe80 into master Nov 1, 2021
@vuluongj20 vuluongj20 deleted the vuluong/sidebar-descenders branch November 1, 2021 21:42
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants