Merge pull request #5966 from vruello/patch-1

doc: Fix toggleColorScheme function in theming
pull/5969/head
Tuğçe Küçükoğlu 2024-06-26 13:51:55 +03:00 committed by GitHub
commit 3e2c905bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ app.use(PrimeVue, {
code3: {
basic: `
const toggleColorScheme() {
document.body.classList.toggle("my-app-dark");
const element = document.querySelector('html');
element.classList.toggle('my-app-dark');
}
`
}