-
Notifications
You must be signed in to change notification settings - Fork 148
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
chore!: remove size from inputs #1718
Conversation
🦋 Changeset detectedLatest commit: 44463ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
3fa223f
to
b1a71fc
Compare
Size Change: -797 B (0%) Total Size: 292 kB
ℹ️ View Unchanged
|
`; | ||
|
||
export type BadgeSize = 'S' | 'M'; | ||
type BadgeSizes = 'S' | 'M'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For types, singular makes more sense to me. If size: BadgeSize
I know it's a badge size. If I see size: BadgeSizes
I expect I can pass in an array of sizes or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You think? I was super on the fence about this, and i don't really mind – I wanted to find a library that did something i could draw upon, if you feel strongly about it im happy to do it 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think so, although I feel bad that we've had that "deprecated: use BadgeSizes" and now we're undeprecating it (once you remove the comment) instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the deprecation here, so dw lol
packages/design-system/src/components/IconButton/IconButton.tsx
Outdated
Show resolved
Hide resolved
7a4eeca
to
f81f78d
Compare
552f613
to
749f14e
Compare
chore!: remove size from inputs
749f14e
to
f2fcebc
Compare
chore!: remove size from inputs
What does it do?
size
from inputs and uses padding insteadWhy is it needed?
Related issue(s)/PR(s)