Skip to content

Commit f156647

Browse files
jonnittoreinink
authored andcommitted
Ignore not-prose also on the element itself
1 parent ee884f3 commit f156647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
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)