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

#341 Reorganize Badge component to reflect Figma designs #356

Merged
merged 3 commits into from
Jul 26, 2022
Merged

Conversation

sgraczyk
Copy link

@sgraczyk sgraczyk commented Jul 25, 2022

Resolves #341

Description

The original issue assumed only the need to apply some styles, however, the component requires some bigger refactor in order to handle various variants. Changes applied:

  • Added kind prop instead of secondary boolean
  • Added size to handle 3 cases
  • Added type to automatically handle alert and dot variants. I've ignored new-message and extended as for now I believe other forms of content should be handled externally.

Storybook

@sgraczyk sgraczyk linked an issue Jul 25, 2022 that may be closed by this pull request
@sgraczyk sgraczyk requested a review from a team July 25, 2022 14:13
Copy link
Contributor

@marcinsawicki marcinsawicki left a comment

Choose a reason for hiding this comment

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

Looks fine for me, except for one comment related to stretching the badge size in a case where someone passes too much content to the component.

@sgraczyk sgraczyk merged commit 0eed2c7 into v1 Jul 26, 2022
@sgraczyk sgraczyk deleted the feature/341 branch July 26, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Badge] Apply styles according to designs
4 participants