jss
jss copied to clipboard
Nested function style with prop not working as intended
Expected behavior: Nested function style should apply props value to the rule, but it has no effect.
Describe the bug:
The props in the following function style have no effect on the rules:
wrapper: {
"& h1": p => ({
fontSize: p.size,
weight: 900
})
}
Codesandbox link: codesandbox.io
Versions (please complete the following information):
- jss: 10.0.0-alpha
- Browser [e.g. chrome, safari]: chrome
- OS [e.g. Windows, macOS]: Windows
Any updates on this? It's still not working...