Open osukaa opened 2 years ago
Sweet, thanks for the PR @osukaa! At a first glance it seems fine to me, will give it a try later today and if all goes well I'll include it in v1.1.13.
In the meantime, it would be great if you could also update the Helper readme section to briefly describe these additional features.
I've added the documentation as an example!
@jjranalli any updates around this PR?
I'm enhancing the
init()
method from the helper, to copy a similar style of what is done in the overreacted.io style. By addingwindow.__theme
to track current themewindow.__onThemeChange
to allow a component to track whenever the dark mode gets toggled.Simplified version of overreacted.io Layout.js
This should be a non-breaking change, and backwards compatible