How to maintain the order of CSS declarations? #2508
Unanswered
phongphongg
asked this question in
Q&A
Replies: 2 comments
-
I have the same issue and had to define css({
color: {
_hover: {
base: 'red'
_pressed: 'blue'
},
_pressed: 'blue'
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Being able to use condition shortcuts in arbitrary queries would help 👀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to maintain the order of CSS declarations?
Link: https://play.panda-css.com/GACxJoJjMd
Even though I declared _pressed after _hover, after building, it becomes _pressed before _hover. This causes the style of _pressed to be overridden.
Beta Was this translation helpful? Give feedback.
All reactions