From cb5e2dd8617ca7db7d70efc555a99fad7244e568 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 13 Oct 2022 13:45:55 -0400 Subject: [PATCH] Properly flag variants using modifiers --- src/lib/generateRules.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js index ab01db78ddc8..961b6fa5e5af 100644 --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -153,6 +153,10 @@ function applyVariant(variant, matches, context) { if (match) { variant = match[1] args.modifier = match[2] + + if (!flagEnabled(context.tailwindConfig, 'generalizedModifiers')) { + return [] + } } }