Skip to content

fix(Badge): Set default size to 10 for pimple badge when label and size are not provided #3544

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Description

Fixed an issue with the Badge component where a pimple badge (when label is undefined) would not have the correct size when the size prop was also not provided. Now, when both label and size props are not passed, the badge defaults to a pimple badge with size 10, ensuring isSmallBadge returns true.

Change Log

Badge - Fix pimple badge size when label and size props are not provided

Additional Info

Link to Devin run: https://app.devin.ai/sessions/015090f593bf45e48223947856ae5df9

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@adids1221 adids1221 closed this Mar 2, 2025
@adids1221 adids1221 reopened this Mar 2, 2025
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.

1 participant