Skip to content

Releases: todd-elvers/react-dark-mode-toggle-2

v2.0.9

09 Jan 01:37
447fbca
Compare
Choose a tag to compare

Patch Changes

v2.0.8

10 Jan 17:45
d726ff0
Compare
Choose a tag to compare

Patch Changes

v2.0.7

01 Sep 20:46
Compare
Choose a tag to compare

Patch Changes

  • Simplified implementation, removing the need for any hacky behavior like setTimeout, etc.
  • Handled another edge-case related to showing an initial flash of the incorrect state
  • Tweaked the animation duration so that it takes about the same time to go from light -> dark as it does to go from dark -> light

v2.0.5

26 Jul 01:20
Compare
Choose a tag to compare

Patch Changes

  • Fixed bug causing toggle to sometimes flicker the incorrect state on click
  • Switched from the regular lottie player in react-lottie-player to the LottiePlayerLight variant offered by the same library. This variant doesn't use eval, which cleared up some console warnings and dropped the bundle size by about 40%.

v2.0.4

25 Jul 20:53
fa61541
Compare
Choose a tag to compare

Patch Changes