Skip to content

Commit 7264a5b

Browse files
authored
Generate group parent classes correctly with custom separator (#4508)
1 parent 15642fb commit 7264a5b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/jit/corePlugins.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,7 @@ export default {
171171
return null
172172
}
173173

174-
let groupSelector = prefixSelector(
175-
config('prefix'),
176-
`.group${config('separator')}${state}`
177-
)
174+
let groupSelector = prefixSelector(config('prefix'), `.group:${state}`)
178175

179176
return `${groupSelector} ${variantSelector}`
180177
})

tests/jit/custom-separator.test.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.group_hover .group-hover_focus-within_text-left:focus-within {
1+
.group:hover .group-hover_focus-within_text-left:focus-within {
22
text-align: left;
33
}
44
[dir='rtl'] .rtl_active_text-center:active {

0 commit comments

Comments
 (0)