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

Chip implementation updates #2645

Closed
4 tasks
adamstankiewicz opened this issue Sep 22, 2023 · 1 comment
Closed
4 tasks

Chip implementation updates #2645

adamstankiewicz opened this issue Sep 22, 2023 · 1 comment
Assignees

Comments

@adamstankiewicz
Copy link
Member

adamstankiewicz commented Sep 22, 2023

The Chip was previously updated to reflect the chip-like UI within the spec'd Multiselect component (WIP). However, this decision had the unfortunate consequence of changing the Chip to something we didn't actually want it to be for majority of existing use cases.

Now, design has some capacity to go back to the drawing board for Chip to ensure its design spec reflects the intent we have for the Chip component moving forward. The Chip used in the Multiselect component's spec remains unchanged, but the intent is that Multiselect will adopt the pattern spec'd for Chip as is in the future.

The spec updates for Chip lives here: #2645

Dismissable Chip in this work remains largely deferred from a design perspective, but we will still need to support it for existing use cases by some product teams. The Chip component accepts onIconBeforeClick and onIconAfterClick props to allow consumers to interact with clicks on the icon.

Based on the WIP dismissable Chip specs in the above Figma spec, I would recommend updating to conditionally use an IconButton for the icon passed to iconAfter and/or iconBefore when the associated onIconBeforeClick and/or onIconAfterClick is passed.

Tasks

@brian-smith-tcril
Copy link
Contributor

I think this has been addressed by #2836. If not we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants