sci-components
sci-components copied to clipboard
feat(ButtonToggle): implement new icon variant of toggle
Summary
ButtonToggle Github issue: #808
ButtonIcon
component was found to have three distinct use cases:
- Standard
Button
functionality -
ButtonDropdown
functionality - Toggle functionality, though used for distinctly different use cases than
InputToggle
Use cases 1 and 2 above have resulted in the creation of Icon variants within the existing Button
and ButtonDropdown
components. Use case 3 has been implemented in this PR.
Checklist
- [x] Default Story in Storybook
- [x] LivePreview Story in Storybook
- [x] Test Story in Storybook
- [x] Tests written
- [x] Variables from
defaultTheme.ts
used wherever possible - [x] If updating an existing component, depreciate flag has been used where necessary
- [x] Chromatic build verified by @chanzuckerberg/sds-design