Skip to content

Commit 2276c1d

Browse files
authoredOct 30, 2023
fix(theme): theme switch is not hidden on force-dark (#3155)
1 parent c343d93 commit 2276c1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/client/theme-default/components/VPNavBarExtra.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const hasExtraContent = computed(
2828
</template>
2929
</div>
3030

31-
<div v-if="site.appearance" class="group">
31+
<div v-if="site.appearance && site.appearance !== 'force-dark'" class="group">
3232
<div class="item appearance">
3333
<p class="label">
3434
{{ theme.darkModeSwitchLabel || 'Appearance' }}

‎src/client/theme-default/components/VPNavScreenAppearance.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { site, theme } = useData()
66
</script>
77

88
<template>
9-
<div v-if="site.appearance" class="VPNavScreenAppearance">
9+
<div v-if="site.appearance && site.appearance !== 'force-dark'" class="VPNavScreenAppearance">
1010
<p class="text">
1111
{{ theme.darkModeSwitchLabel || 'Appearance' }}
1212
</p>

0 commit comments

Comments
 (0)
Please sign in to comment.