Robin Malfait
47b3ad1387
chore: Cleanup duplication ( #109 )
...
* remove duplicate calculate-active-index calculation
* make codebase a bit more consistent
* remove duplicate resolve-prop-value
2020-10-19 12:21:12 +02:00
Robin Malfait
fecd61dff6
ensure that you can't use Enter to invoke the Switch
...
And a bunch of keyPress and keyboard related shenanigans
2020-10-06 14:00:01 +02:00
Robin Malfait
6e3d496998
feat: add Switch component ( #26 )
...
* add Switch component
* add tests to verify that we can click the label to toggle the Switch
* use onKeyUp to prevent triggering the onClick in firefox
2020-10-05 16:47:31 +02:00