Skip to content

Commit

Permalink
Show completions when using parameterized and/or labelled variants
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Oct 7, 2022
1 parent 72569b0 commit d073bb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export function getVariantsFromClassName(
if (
allVariants.includes(part) ||
(state.jit &&
part.startsWith('[') &&
part.endsWith(']') &&
((part.includes('[') && part.endsWith(']')) ||
(part.includes('<') && part.includes('>'))) &&
jit.generateRules(state, [`${part}${state.separator}[color:red]`]).rules.length > 0)
) {
variants.add(part)
Expand Down

0 comments on commit d073bb9

Please sign in to comment.