Skip to content

Commit 6ce2cfe

Browse files
committed
Bubble @screen at-rules when adding styles through plugins
1 parent 973e41c commit 6ce2cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/parseObjectStyles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export default function parseObjectStyles(styles) {
1010

1111
return _.flatMap(
1212
styles,
13-
style => postcss([postcssNested]).process(style, { parser: postcssJs }).root.nodes
13+
style => postcss([postcssNested({ bubble: ['screen'] })]).process(style, { parser: postcssJs }).root.nodes
1414
)
1515
}

0 commit comments

Comments
 (0)