Skip to content

Commit 2018cba

Browse files
committed
Fix nested styles order
1 parent 7b9c122 commit 2018cba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/StyleSheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class StyleSheet {
8989
if (!this.deployed) return rule
9090
// Don't insert rule directly if there is no stringified version yet.
9191
// It will be inserted all together when .attach is called.
92-
if (queue) queue.push(rule)
92+
if (queue) queue.unshift(rule)
9393
else {
9494
this.insertRule(rule)
9595
if (this.queue) {

0 commit comments

Comments
 (0)