fix tag colors when using the light theme as system default (#5457)

* fix tag colouring on system default light theme

* note
This commit is contained in:
Matt Fiddaman
2025-08-04 14:22:51 -04:00
committed by GitHub
parent 8d84f16604
commit 380fae1ccd
2 changed files with 12 additions and 0 deletions

View File

@@ -25,6 +25,12 @@ export function useTags() {
}
function getTagCSSColors(theme: Theme, color?: string | null) {
if (theme === 'auto') {
theme = window.matchMedia('(prefers-color-scheme: light)').matches
? 'light'
: 'dark';
}
if (theme === 'light') {
return [
color ? `${color} !important` : themeStyle.noteTagText,

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [matt-fidd]
---
Fix tag colors when using the light theme as system default