feat: expand CSS conditions for active and open states

This commit is contained in:
2025-09-28 11:55:59 -06:00
parent 21519391a7
commit 9c49f46ee7
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
"README.md"
],
"main": "dist/index.js",
"version": "0.0.9",
"version": "0.0.10",
"scripts": {
"prepare": "ts-patch install -s && bun .husky/install.ts",
"prepublishOnly": "bun run build",

View File

@@ -190,7 +190,8 @@ const srJuggernautPandaPreset = (config?: ThemeConfig) => {
},
conditions: {
extend: {
active: '&[data-state="open"]'
active: '&:is(:active, [data-active], [data-state="active"], [data-state="open"])',
open: '&:is(:open, [open], [data-open], [data-state="open"])'
}
},
globalCss: {