aphrodite icon indicating copy to clipboard operation
aphrodite copied to clipboard

Calling set state and optionally setting styles isn't working

Open rileybracken opened this issue 8 years ago • 0 comments

Currently I am setting styles in my CRA app using a ternary operator.

The classes set properly, I can see the styles in the style tag but for whatever reason they do not apply.

This is what I have: className={ css(this.state.fixed ? style.navContainerFixed : style.navContainer)

It is very similar to what is happening in the example here: https://github.com/Khan/aphrodite/blob/master/examples/src/StyleTester.js#L37

image

Thanks in advance everyone.

Could this be similar to #76?

rileybracken avatar Mar 30 '17 23:03 rileybracken