Skip to content

Support or document CSS fallback property usage #773

Answered by peduarte
mntnoe asked this question in Ideas
Discussion options

You must be logged in to vote

Im hesitant to allow arrays for values. It makes typing more complex and makes the code less concise.

There are two ways to do this, via utils, or via multiple arguments.

I'd recommend using multiple arguments, because Stitches is able to correctly merge them.

styled('div', { minHeight: '100vh' }, { minHeight: '-webkit-fill-available' })

Demo here: https://codesandbox.io/s/weathered-forest-p73jn?file=/src/App.tsx

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@peduarte
Comment options

Comment options

You must be logged in to vote
4 replies
@mntnoe
Comment options

@lukerohanbailey
Comment options

@mntnoe
Comment options

@LexSwed
Comment options

Answer selected by mntnoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #616 on September 09, 2021 15:30.