Releases: todd-elvers/react-dark-mode-toggle-2
Releases · todd-elvers/react-dark-mode-toggle-2
v2.1.1
What's Changed
- Bumped
classnamesandreact-lottie-playerto resolve an error in the console related todefaultPropsbeing deprecated (Closes #12)
Full Changelog: v2.1.0...v2.1.1
v2.1.0
What's Changed
- feat: resolve Lighthouse a11y warnings from the button element by @chrisvogt in #14
New Contributors
- @chrisvogt made their first contribution in #14
Full Changelog: v2.0.9...v2.1.0
v2.0.9
v2.0.8
Patch Changes
- #4
8702f92Thanks @coolusaHD! - Allowidto be passed in and assigned to the underlyingbuttonelement - #5
d726ff0Thanks @coolusaHD! - Update readme to reflect new, optionalidprop
v2.0.7
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
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
LottiePlayerLightvariant offered by the same library. This variant doesn't useeval, which cleared up some console warnings and dropped the bundle size by about 40%.
v2.0.4
Patch Changes
- #3
fa61541Thanks @coolusaHD! - Update to React 18 & update all out-of-date dependencies