-
Is your feature request related to a problem? Please describe. We still need to use CSS fallback properties from time to time, even on modern browsers, for instance:
It doesn't look like this is currently supported in Stitches, at least I couldn't find any documentation on it. Describe the solution you'd like Emotion and free-style use arrays to express this:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
You can rely on |
Beta Was this translation helpful? Give feedback.
-
Thanks for the workaround! I will use this for now, and understand that adding support may complicate typings even more. I hope to see support for this added at some point, though. |
Beta Was this translation helpful? Give feedback.
-
This is now an RFC, because it would change how Stitches works. |
Beta Was this translation helpful? Give feedback.
-
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.
Demo here: https://codesandbox.io/s/weathered-forest-p73jn?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
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.
Demo here: https://codesandbox.io/s/weathered-forest-p73jn?file=/src/App.tsx