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

chore!: remove size from inputs #1718

Merged
merged 3 commits into from
May 8, 2024

Conversation

joshuaellis
Copy link
Member

chore!: remove size from inputs

What does it do?

  • removes size from inputs and uses padding instead

Why is it needed?

  • we don't use size, it's a maintenance burden and really, we should be using padding's anyway so it works with RTL

Related issue(s)/PR(s)

  • resolves DX-1296

@joshuaellis joshuaellis added pr: chore This PR contains chore tasks (cleanups, configs, tooling...) source: design-system relates to design-system package labels May 7, 2024
@joshuaellis joshuaellis self-assigned this May 7, 2024
Copy link

changeset-bot bot commented May 7, 2024

🦋 Changeset detected

Latest commit: 44463ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@strapi/design-system Major
@strapi/icons Major
@strapi/ui-primitives Major

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

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design_system_v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:47am
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 8:47am
design-system-website ❌ Failed (Inspect) May 8, 2024 8:47am

Copy link

github-actions bot commented May 7, 2024

Size Change: -797 B (0%)

Total Size: 292 kB

Filename Size Change
packages/design-system/dist/index.js 96.6 kB -407 B (0%)
packages/design-system/dist/index.mjs 95.3 kB -390 B (0%)
ℹ️ View Unchanged
Filename Size
packages/icons/dist/index.js 22.1 kB
packages/icons/dist/index.mjs 21.7 kB
packages/icons/dist/symbols-index.js 11.9 kB
packages/icons/dist/symbols-index.mjs 11.8 kB
packages/primitives/dist/index.js 16.6 kB
packages/primitives/dist/index.mjs 16.1 kB

compressed-size-action

`;

export type BadgeSize = 'S' | 'M';
type BadgeSizes = 'S' | 'M';

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.

Copy link
Member Author

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 😄

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

Copy link
Member Author

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

@joshuaellis joshuaellis merged commit 981d6d0 into releases/2.0.0 May 8, 2024
11 of 12 checks passed
@joshuaellis joshuaellis deleted the chore/refactor-size-to-be-variant branch May 8, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: chore This PR contains chore tasks (cleanups, configs, tooling...) source: design-system relates to design-system package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants