mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: do not override logo markup when loading page in dark mode
Ensures that when loading the page in dark mode, logo can switch back to light logo if user toggles their OS appearance.
This commit is contained in:
@@ -202,10 +202,10 @@ widgetTest("dark color scheme and dark logo set", {
|
||||
beforeEach() {
|
||||
this.siteSettings.site_logo_url = bigLogo;
|
||||
this.siteSettings.site_logo_dark_url = darkLogo;
|
||||
Session.currentProp("darkColorScheme", true);
|
||||
Session.currentProp("defaultColorSchemeIsDark", true);
|
||||
},
|
||||
afterEach() {
|
||||
Session.currentProp("darkColorScheme", null);
|
||||
Session.currentProp("defaultColorSchemeIsDark", null);
|
||||
},
|
||||
test(assert) {
|
||||
assert.ok(find("img#site-logo.logo-big").length === 1);
|
||||
@@ -222,10 +222,10 @@ widgetTest("dark color scheme and dark logo not set", {
|
||||
beforeEach() {
|
||||
this.siteSettings.site_logo_url = bigLogo;
|
||||
this.siteSettings.site_logo_dark_url = "";
|
||||
Session.currentProp("darkColorScheme", true);
|
||||
Session.currentProp("defaultColorSchemeIsDark", true);
|
||||
},
|
||||
afterEach() {
|
||||
Session.currentProp("darkColorScheme", null);
|
||||
Session.currentProp("defaultColorSchemeIsDark", null);
|
||||
},
|
||||
test(assert) {
|
||||
assert.ok(find("img#site-logo.logo-big").length === 1);
|
||||
|
||||
Reference in New Issue
Block a user