Closed RamonBalthazar closed 6 years ago
Can you please show an example on codesandbox without CustomThemeProvider in order to make sure the problem is in jss?
@RamonBalthazar any updates?
Same for me, I just reproduced it here: https://codesandbox.io/s/vml5lxmvy
how can we right the JSS for the below example :
<Collapsible trigger="Start here">
<p>This is the collapsible content. It can be any element or React component you like.</p>
</Collapsible>
CSS is:
.Collapsibletrigger { display: block; font-weight: 600; text-decoration: none; color: #ffffff; position: relative; border: 1px solid white; padding: 10px; background: #f3f4f4; color: black; } .Collapsibletrigger:after { font-family: 'FontAwesome'; content: '\f107'; position: absolute; right: 10px; top: 10px; display: block; transition: transform 300ms; } .Collapsibletrigger.is-open:after { transform: rotateZ(180deg); } .Collapsibletrigger.is-disabled { opacity: 0.5; background-color: grey; }
Can You please any one help me about this
I'm trying to dynamically change the font for
body
from inside myCustomThemeProvider
usingprops
but it works only for the first time, whenever I send new props toCustomThemeProvider
the body style remains untouched.Sample code: