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

Tags: enhancement to incorporate chips styling #505

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Conversation

Supriya-Arora
Copy link
Contributor

Added style (rectangular/circular) & size (small/medium) prop to Tag component.

image

@Supriya-Arora Supriya-Arora marked this pull request as ready for review November 27, 2024 21:58
Copy link
Contributor

@mkernohanbc mkernohanbc left a comment

Choose a reason for hiding this comment

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

I think this looks good structurally, and all seems to work as expected locally. The only issue I see is the prop name collision I flagged in my other comment. Once we update the style prop name and references to resolve that conflict, I'll approve and we can merge!

One thing I'd like to circle back on as another enhancement is extending TagGroup so that the user can set the tag style once and have it be applied to all child tags in that group (ie. as an alternative to setting the style on each tag individually.) I'll create a separate ticket for that change — not blocking for release, just a QOL thing.

/**
* Style
*/
style?: "rectangular" | "circular";
Copy link
Contributor

Choose a reason for hiding this comment

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

The style prop name already exists on RAC Tag, providing a method for injecting inline CSS into a component.

I'd suggest we rename this to variant (following the pattern of our other components, like Button.)

@mkernohanbc mkernohanbc added the enhancement New feature or request label Nov 27, 2024
@mkernohanbc mkernohanbc added this to the Components v0.5.0 milestone Nov 27, 2024
@mkernohanbc
Copy link
Contributor

@Supriya-Arora looks good to me! 🚀

@Supriya-Arora Supriya-Arora merged commit f8f42af into main Nov 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants