We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d9e8bc commit 5150b4dCopy full SHA for 5150b4d
src/removeUnsupported.js
@@ -52,8 +52,9 @@ module.exports = (options = { debug: false }) => {
52
53
// replace :root and :host pseudo selector, introduced in Tailwind 4+ with .ns-root for var handling.
54
if (rule.selector.includes(":root") || rule.selector.includes(":host")) {
55
+ const rootClasses = '.ns-root, .ns-modal';
56
rule.selectors = rule.selectors.map((selector) =>
- selector.replace(/:root/, ".ns-root").replace(/:host/, ".ns-root")
57
+ selector.replace(/:root/, rootClasses).replace(/:host/, rootClasses)
58
);
59
}
60
0 commit comments