mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-14 17:59:08 +08:00
fix: selector generation when using important
This commit is contained in:
@@ -82,7 +82,7 @@ export const plugin: PluginCreator<PostcssPluginOptions> = ({
|
||||
} else {
|
||||
// The parent is the root, so we are not in a media query
|
||||
for (const s of node.selectors) {
|
||||
const selector = normaliseSelector(s);
|
||||
const selector = normaliseSelector(s, { important });
|
||||
styles[selector] = { ...styles[selector], ...declarations };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user