I get the 01-bg-slate-100 style and not the dark:o1-bg-slate-800. However if I switch to dark mode through the drop down I do get the dark mode as .o1-dark .dark\:o1-bg-slate-800.
It looks like the issue is in this observer's initialization scripts, maybe that it runs too fast? After a refresh I am able to run document.documentElement.classList and I see dark however it does not have o1-dark.
Toggling the theme switcher fixes the issue even if you return to System theme, until you refresh.
Simply refreshing and executing: document.documentElement.classList.add('o1-dark') fixes the dark issue.
I feel the solution is to just use the default .dark class instead of .o1-dark but I must be missing something.
Hello,
When using the notes field with Nova with the System (OSX) set to Dark mode. I do not get the proper background color class in the NotesField.
I get the
01-bg-slate-100
style and not thedark:o1-bg-slate-800
. However if I switch to dark mode through the drop down I do get the dark mode as.o1-dark .dark\:o1-bg-slate-800
.--
Issue Source:
https://github.com/outl1ne/nova-notes-field/blob/main/resources/js/entry.js#L6-L19
It looks like the issue is in this observer's initialization scripts, maybe that it runs too fast? After a refresh I am able to run
document.documentElement.classList
and I seedark
however it does not haveo1-dark
.Toggling the theme switcher fixes the issue even if you return to System theme, until you refresh.
Simply refreshing and executing:
document.documentElement.classList.add('o1-dark')
fixes the dark issue.I feel the solution is to just use the default
.dark
class instead of.o1-dark
but I must be missing something.