Patch Changes
-
8fda1a5: Fix pseudo-element conditions (::before, ::after) being placed before pseudo-class selectors in generated CSS
When a pseudo-element condition like
_beforewas combined with a mixed condition like_hover(defined as an array
with a media query + selector), the pseudo-element would incorrectly appear before the pseudo-class in the generated
CSS selector.Before (broken):
.class::before:is(:hover, ...)- invalid CSS After (fixed):
.class:is(:hover, ...)::before- valid CSSThe fix ensures pseudo-element selectors are always sorted last in the condition chain, matching the CSS specification
requirement that pseudo-elements must appear at the end of a selector. -
Updated dependencies [d02fcf6]
- @pandacss/token-dictionary@1.9.1
- @pandacss/is-valid-prop@1.9.1
- @pandacss/logger@1.9.1
- @pandacss/shared@1.9.1
- @pandacss/types@1.9.1