mia-platform / design-system

React graphical components designed by Mia Platform
https://mia-platform.github.io/design-system/
Apache License 2.0
13 stars 1 forks source link

fix(Switch): resolve Switch animation issues on storybook #688

Closed GiovannaMonti closed 3 weeks ago

GiovannaMonti commented 3 weeks ago

Description

The animation of the switch component was very clunky on storybook. This behaviour was caused by the storybook actions addon which was implicitly used to populate the onChange and onClick properties when they were not provided. This PR fixes the issue by explicitly overwriting these props in the storybook.

[IMPORTANT] PR Checklist

PR conventions

Please make sure your PR complies with the following rules before submitting it.

Additional code checks

Based on your changes, some of these checks may not apply. Please make sure to check the relevant items in the list.