Skip to content

Apply mutilple at-rules to the same element. #508

Answered by layershifter
wfwf1997 asked this question in Q&A
Discussion options

You must be logged in to vote

@wfwf1997 order of media queries should be deterministic to have deterministic results, the default comparison is intentionally not smartest as we don't want to enforce our opinions.

However, you can configure how style elements will ordered, https://griffel.js.org/react/api/create-dom-renderer#comparemediaqueries

Replies: 1 comment 2 replies

Comment options

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

@layershifter
Comment options

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