Skip to content

Commit 99031d9

Browse files
committed
small fix to the control logic for the HdsThemeSwitcher demo in showcase page
1 parent f69c1e5 commit 99031d9

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

showcase/app/components/page-foundations/theming/sub-sections/theme-switcher.gts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)