Skip to content

Commit

Permalink
fix: update missing parent rule unocss/unocss#1164
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Jul 9, 2022
1 parent 77afb67 commit bbfeee6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/variants.ts
Expand Up @@ -30,7 +30,10 @@ export const variantParentMatcher = (name: string, parent: string): VariantObjec
if (match) {
return {
matcher: input.slice(match[0].length),
parent,
handle: (input, next) => next({
...input,
parent: `${input.parent ? `${input.parent} $$ ` : ''}${parent}`,
}),
}
}
},
Expand Down

0 comments on commit bbfeee6

Please sign in to comment.