feat: expand CSS conditions for active and open states
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"README.md"
|
"README.md"
|
||||||
],
|
],
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"version": "0.0.9",
|
"version": "0.0.10",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "ts-patch install -s && bun .husky/install.ts",
|
"prepare": "ts-patch install -s && bun .husky/install.ts",
|
||||||
"prepublishOnly": "bun run build",
|
"prepublishOnly": "bun run build",
|
||||||
|
|||||||
@@ -190,7 +190,8 @@ const srJuggernautPandaPreset = (config?: ThemeConfig) => {
|
|||||||
},
|
},
|
||||||
conditions: {
|
conditions: {
|
||||||
extend: {
|
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: {
|
globalCss: {
|
||||||
|
|||||||
Reference in New Issue
Block a user