Skip to content

Commit 78bd9b5

Browse files
committed
Ignore not-prose also on the element itself
1 parent 4c3b76c commit 78bd9b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ function inWhere(selector, { className, modifier, prefix }) {
1919
let [trailingPseudo, rebuiltSelector] = commonTrailingPseudos(selector)
2020

2121
if (trailingPseudo) {
22-
return `:where(${selectorPrefix}${rebuiltSelector}):not(:where([class~="${prefixedNot}"] *))${trailingPseudo}`
22+
return `:where(${selectorPrefix}${rebuiltSelector}):not(:where([class~="${prefixedNot}"],[class~="${prefixedNot}"] *))${trailingPseudo}`
2323
}
2424

25-
return `:where(${selectorPrefix}${selector}):not(:where([class~="${prefixedNot}"] *))`
25+
return `:where(${selectorPrefix}${selector}):not(:where([class~="${prefixedNot}"],[class~="${prefixedNot}"] *))`
2626
}
2727

2828
function isObject(value) {

0 commit comments

Comments
 (0)