mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Match any rules that include the target selector when replacing class apply at rules
This commit is contained in:
parent
028468d6a5
commit
169e1e7c3c
@ -4,7 +4,7 @@ export default function findMixin(css, mixin, onError) {
|
||||
const matches = []
|
||||
|
||||
css.walkRules(rule => {
|
||||
if (rule.selector === mixin) {
|
||||
if (rule.selectors.includes(mixin)) {
|
||||
matches.push(rule)
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user