Use candidate object in applyImportant
This commit is contained in:
parent
3192f2a007
commit
c8be920468
1 changed files with 5 additions and 2 deletions
|
|
@ -89,10 +89,13 @@ function applyPrefix(matches, context) {
|
|||
return matches
|
||||
}
|
||||
|
||||
function applyImportant(matches, classCandidate) {
|
||||
function applyImportant(matches, parsed) {
|
||||
if (matches.length === 0) {
|
||||
return matches
|
||||
}
|
||||
|
||||
let classCandidate = parsed.withoutVariants
|
||||
|
||||
let result = []
|
||||
|
||||
for (let [meta, rule] of matches) {
|
||||
|
|
@ -482,7 +485,7 @@ function* resolveMatches(candidate, context) {
|
|||
matches = applyPrefix(matches, context)
|
||||
|
||||
if (important) {
|
||||
matches = applyImportant(matches, classCandidate)
|
||||
matches = applyImportant(matches, parsed)
|
||||
}
|
||||
|
||||
for (let variant of variants) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue