Skip to content

Commit b38e4d9

Browse files
committed
fix: Handling of !important when @ mediaQueries are defined
1 parent 19f3d19 commit b38e4d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ function createRule(className) {
136136
if (className.includes('!important')) {
137137
[className, important] = className.split("!");
138138
important = '!' + important;
139-
importantSuffix = '\\' + important;
139+
importantSuffix = parseValue(important);
140+
important = '!important';
140141
}
141142
let res = className.split(":");
142143
let property = res[0];

0 commit comments

Comments
 (0)