Skip to content

Commit

Permalink
refactor(toggle): create v11 toggle (#8469)
Browse files Browse the repository at this point in the history
* refactor(toggle): create v11 toggle basis

* fix(toggle): fix spacing for rtl layouts

* test(toggle): add unit tests

* feat(toggle): allow toggle state to be controlled

* fix(toggle): forward correct prop types

* feat(toggle): add props.hideLabel

* test(toggle): add missing required props to old toggle tests

* fix(toggle): remove explicit prop type assignment

* fix(toggle): remove default empty function for props.onClick

* fix(toggle): remove unnecessary tabindex definition

* test(toggle): migrate to testing-library/react

* fix(toggle): update tokens

* refactor(toggle): move hcm styles to bottom of stylesheet

* feat(toggle): spread other props on button element

Co-authored-by: TJ Egan <tw15egan@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored May 11, 2021
1 parent 14b4dc1 commit f69f887
Show file tree
Hide file tree
Showing 6 changed files with 838 additions and 417 deletions.
Loading

0 comments on commit f69f887

Please sign in to comment.