Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(toggle): support small size, deprecate ToggleSmall #401

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Nov 19, 2020

This PR addresses a suggestion from @ispyinternet to fold ToggleSmall into Toggle because the components are virtually identical. This has also been raised upstream in carbon-design-system/carbon#6653

Changes

  • add "size" prop to Toggle and ToggleSkeleton; default value is "default" while "sm" uses the small variant
  • add deprecation notices to ToggleSmall and ToggleSmallSkeleton

Breaking Changes

None.

However, the ToggleSmall and ToggleSmallSkeleton will be removed in the next major version.

@vercel
Copy link

vercel bot commented Nov 19, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/carbon-svelte/carbon-components-svelte/56mjagn0w
✅ Preview: https://carbon-components-svelte-git-toggle-size.carbon-svelte.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant