Skip to content

Commit aa12fac

Browse files
author
DESKTOP-939248N\apple
committed
fix: error in media for theme
1 parent 01ef735 commit aa12fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const makeRuleForTheme = (className) => {
129129
[style, value, theme] = className.split(':');
130130
if (theme == 'dark' || theme == 'light') {
131131
let rule = '[theme="' + theme + '"] .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}';
132-
let reverseRule = ':not([theme="' + themes[1 - themes.indexOf(theme)] + '"] .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}';
132+
let reverseRule = ':not([theme="' + themes[1 - themes.indexOf(theme)] + '"]) .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}';
133133
tempStyleList.push(rule);
134134
themeCSS[theme].push(reverseRule);
135135
return rule;

0 commit comments

Comments
 (0)