react-switch v2.0.0-rc.2 Release Notes

Release Date: 2017-10-13 // over 6 years ago
  • ๐Ÿ”จ Refactor

    • The switch no longer uses the opacity hack to transition between color. This involved stacking two divs on top of each other and varying the opacity of the top div. This caused some weird visual artifacts.

    ๐Ÿ”„ Changed

    • ๐Ÿ‘ onColor and offColor props can now only take colors in the form of '#xxxxxx'. Gradients and rgb(xxx, xxx, xxx) are no longer supported.
    • ๐Ÿ– handleColor prop is replaced by onHandleColor and offHandleColor.
    • 0๏ธโƒฃ The boxShadow the handle gets when selected is now available in the activeBoxShadow prop. The boxShadow prop is now the boxShadow the handle has when it is not selected, and is null by default.

    ๐Ÿ›  Fixed

    • The switch no longer has a pixel wide gloria of the offColor when checked.

    โœ‚ Removed

    • ๐Ÿšš activeHandleColor prop is removed because of lack of usefulness.