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

Addon-docs: Remove hard-coded lineHeight in Typeset block #9567

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

philippe-lavoie
Copy link
Contributor

@philippe-lavoie philippe-lavoie commented Jan 20, 2020

Issue: #8926

What I did

With lineHeight set to set 1, the bottom of the letters like 'p' gets truncated for most fonts.

This is to fix issue

Removed lineHeight:1

if someone wants it, he can put it in a parent's div.

How to test

Put something like

<Typeset fontFamily="Open Sans" fontSizes={["9px","12px","14px","18px","24px"]} fontWeight={600} sampleText="This is the title font : probably "/>

Inside a story and notice that you can see the full letter 'p' and 'y'.

With lineHeight set to set 1, the bottom of the letters like 'p' gets truncated for most fonts.
@vercel
Copy link

vercel bot commented Jan 20, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/jxbkw3uuo
✅ Preview: https://monorepo-git-fork-philippe-lavoie-next.storybook.now.sh

@domyen
Copy link
Member

domyen commented Jan 20, 2020

lgtm! thanks @philippe-lavoie 🙇‍♂️

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @philippe-lavoie!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants