diegohaz / diegohaz/styled-theme
Nested calls doesn't return the value
Open
- Dominant language
- JavaScript
- Stars
- 181
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
When I use one function inside another the font size doesn't return properly:
```
font-size: ${size(prop('fontSize'))};
```
But when I use only one of the functions the return is correct:
```
font-size: ${({ fontSize }) => key(['sizes', fontSize])};
```
This is the intended way to use the lib or its some kind of bug? I analyzed the return from prop function and see that is a function, can this be the problem that can't be used in nested calls?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.