Skip to content

Commit 167be34

Browse files
committed
chore: fix lint
1 parent be5083f commit 167be34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/CustomHeadLinks.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { SEO } from 'astro-seo'
4343
// Force light mode by ensuring data-theme is always 'light'
4444
// This overrides any system preferences or theme switching attempts
4545
document.documentElement.setAttribute('data-theme', 'light')
46-
46+
4747
// Watch for any attempts to change the theme and override them
4848
const observer = new MutationObserver((mutations) => {
4949
mutations.forEach((mutation) => {
@@ -55,9 +55,9 @@ import { SEO } from 'astro-seo'
5555
}
5656
})
5757
})
58-
58+
5959
observer.observe(document.documentElement, {
6060
attributes: true,
61-
attributeFilter: ['data-theme']
61+
attributeFilter: ['data-theme'],
6262
})
6363
</script>

theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ html {
3232
}
3333

3434
/* Additional safeguard: if any element somehow gets dark theme styles, override them */
35-
[data-theme="dark"] * {
35+
[data-theme='dark'] * {
3636
color-scheme: light !important;
3737
}
3838

0 commit comments

Comments
 (0)