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

Add size prop to large variant components #7234

Merged
merged 8 commits into from
Feb 18, 2025

Conversation

ggdouglas
Copy link
Contributor

Part of #7232

Proposed changes:

FLUP to #7226 that adds the size prop to the following components:

  • <Checkbox>
  • <CompoundTag>
  • <Radio>
  • <Switch>
  • <Tabs>
  • <Tag>
  • <TagInput>

@ggdouglas ggdouglas changed the base branch from gdouglas/size-prop-components to gdouglas/size-prop-buttons February 5, 2025 20:47
@ggdouglas ggdouglas force-pushed the gdouglas/size-prop-large-components branch from 2b159f9 to c3133a5 Compare February 5, 2025 20:48
@svc-palantir-github
Copy link

Add `size` to Tag components

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@ggdouglas ggdouglas force-pushed the gdouglas/size-prop-large-components branch from c3133a5 to 7468d5a Compare February 5, 2025 21:17
@svc-palantir-github
Copy link

Add `size` to Tag components

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@ggdouglas ggdouglas force-pushed the gdouglas/size-prop-large-components branch from 7468d5a to 1531f9b Compare February 14, 2025 18:04
@ggdouglas ggdouglas marked this pull request as ready for review February 14, 2025 18:17
@ggdouglas ggdouglas requested a review from jscheiny February 14, 2025 18:18
@svc-palantir-github
Copy link

Fix size argument type in sizeClass utility

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Base automatically changed from gdouglas/size-prop-buttons to develop February 14, 2025 20:43
jscheiny
jscheiny previously approved these changes Feb 14, 2025
Copy link
Contributor

@jscheiny jscheiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor nit, approving

@@ -447,7 +447,7 @@ export function positionClass(position: Position | undefined) {
}

export function sizeClass(
size: Size | Omit<Size, "small">,
size: Size | NonSmallSize,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is equivalent to just Size, we can simplify this.

Copy link
Contributor Author

@ggdouglas ggdouglas Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ggdouglas ggdouglas force-pushed the gdouglas/size-prop-large-components branch from 503153e to c322cde Compare February 14, 2025 20:46
@policy-bot policy-bot bot dismissed jscheiny’s stale review February 14, 2025 20:46

Invalidated by push of c322cde

@ggdouglas ggdouglas force-pushed the gdouglas/size-prop-large-components branch from 0ebbacc to 3c7c6d1 Compare February 14, 2025 21:01
@ggdouglas ggdouglas force-pushed the gdouglas/size-prop-large-components branch from 3c7c6d1 to f6716ef Compare February 14, 2025 21:36
@svc-palantir-github
Copy link

Use Exclude instead of Omit for NonSmallSize type

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@svc-palantir-github
Copy link

Revert unintentional changes to demo-app

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@ggdouglas ggdouglas merged commit 69b7ff6 into develop Feb 18, 2025
13 checks passed
@ggdouglas ggdouglas deleted the gdouglas/size-prop-large-components branch February 18, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants