File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ const makeRuleForTheme = (className) => {
137
137
let style , value , theme ;
138
138
[ style , value , theme ] = className . split ( ':' ) ;
139
139
if ( theme == 'dark' || theme == 'light' ) {
140
- let rule = ' [theme="' + theme + ' "] .' + style + ' \\:' + value + ' \\:' + theme + ' {' + style + ':' + value + ';}' ;
141
- let reverseRule = ' html:not([theme="' + themes [ 1 - themes . indexOf ( theme ) ] + ' "]) *.' + style + ' \\:' + value + ' \\:' + theme + ' {' + style + ':' + value + ';}' ;
140
+ let rule = ` [theme="${ theme } "] .${ style } \\:${ value } \\:${ theme } { ${ style } : ${ value } ;}` ;
141
+ let reverseRule = ` html:not([theme="${ themes [ 1 - themes . indexOf ( theme ) ] } "]) *.${ style } \\:${ value } \\:${ theme } { ${ style } : ${ value } ;}` ;
142
142
tempStyleList . push ( rule ) ;
143
143
themeCSS [ theme ] . push ( reverseRule ) ;
144
144
return rule ;
You can’t perform that action at this time.
0 commit comments