diegohaz / diegohaz/styled-theme

Nested calls doesn't return the value

Open
#37 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.