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
[x] I am aware of standards and conventions adopted in this repository, defined in the CONTRIBUTING.md file
PR conventions
Please make sure your PR complies with the following rules before submitting it.
[x] PR title follows the <type>(<scope>): <subject> structure
[x] The PR has been labeled according to the type of changes (e.g., enhancement, bug).
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.
[ ] Changes are covered by tests
[x] Changes to components are accessible and documented in the Storybook
[ ] Typings have been updated
[ ] New components are exported from the index file
[ ] New files include the Apache 2.0 License disclaimer
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 theonChange
andonClick
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.
<type>(<scope>): <subject>
structureAdditional code checks
Based on your changes, some of these checks may not apply. Please make sure to check the relevant items in the list.
index
file