Match any rules that include the target selector when replacing class apply at rules
This commit is contained in:
parent
028468d6a5
commit
169e1e7c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue