add font style props to text and heading (#43524)

This commit is contained in:
Ryan Oglesby
2020-04-06 10:22:28 -07:00
committed by GitHub
parent 0fb45469f8
commit 6fc48129ce
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -91,6 +91,7 @@ interface TextKnownProps
extends BoxKnownProps,
StyledSystem.FontFamilyProps,
StyledSystem.FontWeightProps,
StyledSystem.FontStyleProps,
StyledSystem.TextAlignProps,
StyledSystem.LineHeightProps,
StyledSystem.LetterSpacingProps {}
+1 -1
View File
@@ -35,7 +35,7 @@ export default () => (
<Heading fontSize={5} fontWeight="bold">
Hi, I'm a heading.
</Heading>
<Text as="p" fontSize={3} lineHeight="1em" letterSpacing="1rem">
<Text as="p" fontSize={3} lineHeight="1em" letterSpacing="1rem" fontStyle="italic">
Hi, I'm text.
</Text>
<Card