Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Launch the dark mode (#5260)
Olga Bulata9441f7e38fc
diff --git a/frontend/feat/feature-flags.json b/frontend/feat/feature-flags.jsonindex 1a24598dc..296616d1d 100644--- a/frontend/feat/feature-flags.json+++ b/frontend/feat/feature-flags.json@@ -34,7 +34,7 @@"dark_mode_ui_toggle": {"status": {"staging": "switchable",- "production": "disabled"+ "production": "enabled"},"defaultState": "on","description": "Display the UI toggle to change the site color theme and respect system preferences.",diff --git a/frontend/src/components/VFeatureNotice/VDarkModeFeatureNotice.vue b/frontend/src/components/VFeatureNotice/VDarkModeFeatureNotice.vueindex 782cd02e6..2533a6d5c 100644--- a/frontend/src/components/VFeatureNotice/VDarkModeFeatureNotice.vue+++ b/frontend/src/components/VFeatureNotice/VDarkModeFeatureNotice.vue@@ -11,9 +11,8 @@ const handleClick = () => {</script><template>- <!-- TODO: Populate the post permalink. --><VFeatureNotice- see-more-href="https://make.wordpress.org/openverse/"+ see-more-href="https://make.wordpress.org/openverse/?p=2216"@click="handleClick">{{ $t("notification.darkMode.text") }}diff --git a/frontend/test/unit/specs/composables/use-dark-mode.spec.ts b/frontend/test/unit/specs/composables/use-dark-mode.spec.tsindex edafc1d8b..8bf94fa4e 100644--- a/frontend/test/unit/specs/composables/use-dark-mode.spec.ts+++ b/frontend/test/unit/specs/composables/use-dark-mode.spec.ts@@ -1,4 +1,4 @@-import { computed } from "#imports"+import { computed } from "vue"import { describe, expect, test, vi } from "vitest"import { usePreferredColorScheme } from "@vueuse/core"