Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Add default fontSize for Text components. #1

Open
RafalFilipek opened this issue Mar 14, 2017 · 0 comments
Open

Add default fontSize for Text components. #1

RafalFilipek opened this issue Mar 14, 2017 · 0 comments
Labels

Comments

@RafalFilipek
Copy link
Owner

<ConfigBox unit="rem" baseSize={32}>
  // ...
  <Text>hello</Text> // this one is not working :/
  // ...
  <Text fontSize={1}>hello</Text> // 32px
</ConfigBox>

Right now you can set defaultTextStyles to make it work

const textStyles = {
  fontSize: 1,
};
// ...
<CofigBox defaultTextStyles={textStyles} />
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant