Closed beltranrengifo closed 1 year ago
hi!
after digging a bit, in the case that a user sets current: 'light'
and the OS in dark mode, my guess is:
initialMode
defaultMode
is still undefined
prefersDark.matches
so updateMode('dark')
is triggereddark
valuecurrent
from working, I thinkI guess the problem is around this ifs I'll try to take a closer look
Fixed in release v2.0.5
Hi there! I'm having a bug with this storybook here. I set the
current
param aslight
but I can see how it changes when color schema in the system preferences is changed. Also, if OS set to dark mode and the SB is opened in a fresh window, the SB is shown in dark mode... :(As stated in this pr and in the documentation, the other way is expected, isn't it?
Is this a bug or am I missing something? Thanks!