Skip to content

Conversation

@albozek
Copy link
Contributor

@albozek albozek commented Dec 12, 2025

🎫 Issue IBX-10902

Related PRs:

Description:

For QA:

Documentation:

@albozek albozek requested review from a team and Copilot December 12, 2025 15:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR prevents the Badge component from displaying negative numbers by normalizing the input value to a minimum of zero. This change ensures that badge values are always non-negative, which aligns with typical badge UI patterns where negative counts don't make semantic sense.

  • Introduces value normalization using Math.max(0, value) to clamp negative inputs to zero
  • Updates all usages of the value prop to use the normalized value instead

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant