File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
showcase/app/components/page-foundations/theming/sub-sections Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,14 @@ export default class SubSectionThemeSwitcher extends Component {
2323 currentTheme ,
2424 }: OnSetThemeCallbackArgs ) => {
2525 if (
26- (currentTheme === ' system' &&
27- (this .shwTheming .currentStylesheet === ' standard' ||
28- this .shwTheming .currentStylesheet === ' css-selectors' )) ||
29- ((currentTheme === ' light' || currentTheme === ' dark' ) &&
30- (this .shwTheming .currentStylesheet === ' standard' ||
31- this .shwTheming .currentStylesheet === ' prefers-color-scheme' ))
26+ this .shwTheming .currentStylesheet === ' standard' ||
27+ (currentTheme === ' default' &&
28+ this .shwTheming .currentStylesheet === ' css-selectors' )
3229 ) {
3330 window .alert (
34- ' The theming stylesheet will be switched to "combined-strategies " to support this theme selection.' ,
31+ ' The theming stylesheet will be switched to "css-selectors--migration " to support this theme selection.' ,
3532 );
36- this .shwTheming .setStylesheet (' combined-strategies ' );
33+ this .shwTheming .setStylesheet (' css-selectors--migration ' );
3734 }
3835 };
3936
You can’t perform that action at this time.
0 commit comments