elemental-design / elemental-design/elemental-react

Infer lineHeight prop from resolved style font size

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
22
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If someone isn't passing a `fontSize` prop, but a `style` object instead, then we should extract the font size with `StyleSheet.resolve()` and use it as a default `lineHeight` value, potentially adding a configurable multiplier and grid rounding number in the theme object.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.