Skip to content

Commit

Permalink
fix: error in media for theme
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-939248N\apple committed May 19, 2021
1 parent 01ef735 commit aa12fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const makeRuleForTheme = (className) => {
[style, value, theme] = className.split(':');
if (theme == 'dark' || theme == 'light') {
let rule = '[theme="' + theme + '"] .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}';
let reverseRule = ':not([theme="' + themes[1 - themes.indexOf(theme)] + '"] .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}';
let reverseRule = ':not([theme="' + themes[1 - themes.indexOf(theme)] + '"]) .' + style + '\\:' + value + '\\:' + theme + ' {' + style + ':' + value + ';}';
tempStyleList.push(rule);
themeCSS[theme].push(reverseRule);
return rule;
Expand Down

0 comments on commit aa12fac

Please sign in to comment.