Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(toggle): create v11 toggle (#8469)
* 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