Match any rules that include the target selector when replacing class apply at rules

This commit is contained in:
Adam Wathan 2017-08-28 09:16:55 -04:00
parent 028468d6a5
commit 169e1e7c3c

View File

@ -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)
}
})