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(Badge): deprecate some props and new UpdateBadge and StatusBadge components #1258

Merged
merged 5 commits into from
Jul 29, 2024

Conversation

marcinsawicki
Copy link
Contributor

@marcinsawicki marcinsawicki commented Jul 25, 2024

Resolves: #1232

Description

Changes in Badge component:

  • kind - secondary is deprecated (added information)
  • size - large is deprecated (added information)
  • type - dot is deprecated (added information)

Added new UpdateBadge and StatusBadge components with stories related to the Badge component.

Storybook

https://feature-1232--613a8e945a5665003a05113b.chromatic.com

Checklist

Obligatory:

  • Self review (use this as your final check for proposed changes before requesting the review)
  • Add correct label
  • Assign pull request with the correct issue

@marcinsawicki marcinsawicki self-assigned this Jul 25, 2024
@marcinsawicki marcinsawicki added feature New feature or request design UI/UX oriented issue labels Jul 25, 2024
@marcinsawicki marcinsawicki added this to the Cycle #9 milestone Jul 25, 2024
@marcinsawicki marcinsawicki linked an issue Jul 25, 2024 that may be closed by this pull request
@marcinsawicki marcinsawicki marked this pull request as ready for review July 25, 2024 10:16
Copy link
Contributor

@VadymBezpalko VadymBezpalko left a comment

Choose a reason for hiding this comment

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

Good job 👍
I left some minor comments and also have a suggestion to group the default badge files in the storybook as well - in the similar style as StatusBadge and UpdateBadge. So the Badge title probably should be smth like this: title: 'Components/Badge/Badge',

&--3XS {
@include size(4px);

border-width: 1px;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest including border-width into the size mixin and make it as a second parameter

Copy link

@vladko-uxds vladko-uxds left a comment

Choose a reason for hiding this comment

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

👍

@marcinsawicki marcinsawicki merged commit febc1de into main Jul 29, 2024
5 checks passed
@marcinsawicki marcinsawicki deleted the feature/1232 branch July 29, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design UI/UX oriented issue feature New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Badge] - Update variants
3 participants