Skip to content

Fallback styles don't work as I expected #846

Closed Answered by segunadebayo
osdiab asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

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

@punkpeye
Comment options

Answer selected by segunadebayo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #840 on June 27, 2023 07:40.