Ternary inside sx prop #2202
Unanswered
Cody-Cooper
asked this question in
Q&A
Replies: 1 comment
-
Could you provide a small reproduction? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having a problem on my gatsby app where using a ternary operation inside the sx prop will work just fine in my dev server but doesn't work at all in production/after building. Has anyone had to deal with this before?
example:
<section sx={{ top: rootPage ? "50px" : "25px", }} >
Beta Was this translation helpful? Give feedback.
All reactions