jss icon indicating copy to clipboard operation
jss copied to clipboard

Nested function style with prop not working as intended

Open ccpu opened this issue 5 years ago • 1 comments

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

ccpu avatar Jul 25 '20 06:07 ccpu

Any updates on this? It's still not working...

Hristijan95 avatar Feb 15 '22 19:02 Hristijan95