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: option for hiding check icon on selected chip #3969

Merged
merged 4 commits into from
Aug 2, 2023

Conversation

Big-Cheung
Copy link
Contributor

Summary

Added optional prop for enabling/disabling default checkmark icon when selecting a chip.

Test plan

Testable using a Chip component with a selected item. The check mark next to the selected chip should be hidden if the prop option "showSelectedIcon" is set to false, and shown if the option is set to true. It is set to true by default.

@callstack-bot
Copy link

callstack-bot commented Jul 10, 2023

Hey @Big-Cheung, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@lukewalczak
Copy link
Member

lukewalczak commented Jul 11, 2023

Hey @Big-Cheung, you have to adjust spacings when the selected icon is hidden since those are not equal then (check the first 3 Chip):

image

Evan Cheung added 2 commits July 11, 2023 13:35
@Big-Cheung
Copy link
Contributor Author

Good catch! Adjusted the spacing to use normal spacing. I also renamed the prop to be consistent with SegmentedButton.

@lukewalczak lukewalczak added this to the 5.10.0 milestone Jul 25, 2023
@lukewalczak lukewalczak merged commit 9a7f40b into callstack:main Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants