Skip to content
Discussion options

You must be logged in to vote

Could you do something like:

<Navigation className={shouldLock ?  foo  : bar } />

where foo and bar are different CSS modules, and shouldLock is based on whether the navigation is open ?

Alternatively, what about adding a <style jsx global> component conditionally ?

Closing because question is answered

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@brunocrosier
Comment options

@jensmeindertsma
Comment options

Comment options

You must be logged in to vote
2 replies
@brunocrosier
Comment options

@jensmeindertsma
Comment options

Answer selected by jensmeindertsma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants