Skip to content

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

v2.1.1

08 Nov 22:33
Compare
Choose a tag to compare

What's Changed

  • Bumped classnames and react-lottie-player to resolve an error in the console related to defaultProps being deprecated (Closes #12)

Full Changelog: v2.1.0...v2.1.1

v2.1.0

07 Nov 13:57
d105ece
Compare
Choose a tag to compare

What's Changed

  • feat: resolve Lighthouse a11y warnings from the button element by @chrisvogt in #14

New Contributors

Full Changelog: v2.0.9...v2.1.0

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