From 169e1e7c3ccdaf2ee464e530e0928f7b73f6b405 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Mon, 28 Aug 2017 09:16:55 -0400 Subject: [PATCH] Match any rules that include the target selector when replacing class apply at rules --- src/util/findMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/findMixin.js b/src/util/findMixin.js index 88d6b5565..d01aad233 100644 --- a/src/util/findMixin.js +++ b/src/util/findMixin.js @@ -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) } })