Fallback styles don't work as I expected #846
-
DescriptionThis wasn't anywhere I could find in the docs, but it does seem to generally work how I think they would based on If I do this:
I'd expect that the height would be Not what I expected. Link to Reproductionhttps://play.panda-css.com/Pj3J55HixH Steps to reproduce
JS FrameworkN/A, but I use NextJS with TypeScript Panda CSS Version0.5.0 BrowserChrome Operating System
Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The array syntax is an alternative syntax for responsive styles inherited from Chakra's API. It's not for fallback styles. To support that, I recommend creating a variable in the global CSS file along the lines of :root {
--dvh: 100vh
}
@supports (height: 100dvh){
:root {
--dvh: 100dvh
}
} and use that in your code. |
Beta Was this translation helpful? Give feedback.
The array syntax is an alternative syntax for responsive styles inherited from Chakra's API. It's not for fallback styles.
To support that, I recommend creating a variable in the global CSS file along the lines of
and use that in your code.