* chore(sfc-playground): adjust the tooltip text for toggling the theme
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
:prod="productionMode"
:ssr="useSSRMode"
:autoSave="autoSave"
+ :theme="theme"
@toggle-theme="toggleTheme"
@toggle-prod="toggleProdMode"
@toggle-ssr="toggleSSR"
prod: boolean
ssr: boolean
autoSave: boolean
+ theme: 'dark' | 'light'
}>()
const emit = defineEmits([
'toggle-theme',
>
<span>{{ autoSave ? 'AutoSave ON' : 'AutoSave OFF' }}</span>
</button>
- <button title="Toggle dark mode" class="toggle-dark" @click="toggleDark">
+ <button
+ :title="`Switch to ${theme === 'dark' ? 'light' : 'dark'} theme`"
+ class="toggle-dark"
+ @click="toggleDark"
+ >
<Sun class="light" />
<Moon class="dark" />
</button>