Skip to content

Conversation

@OS-giulianasilva
Copy link
Contributor

@OS-giulianasilva OS-giulianasilva commented May 5, 2025

Issue number: resolves internal


What is the current behavior?

The badge presents the xxsmall, xsmall, and xlarge. The user experience design expects only the small and medium sizes for badges with content (number or icon), and small, medium, and large sizes for empty badges.

What is the new behavior?

  • The badge should support only the sizes mentioned above.
  • The small and medium sizes must be adjusted to the new requirements for badges with content.
  • The size property descriptions must inform that the large size is only available for empty badges.

Does this introduce a breaking change?

  • Yes
  • No

@vercel
Copy link

vercel bot commented May 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2025 1:49pm

@github-actions github-actions bot added the package: core @ionic/core package label May 5, 2025
@OS-giulianasilva OS-giulianasilva changed the title remove badge sizes feat(badge): remove xxsmall, xsmall and xlarge sizes May 5, 2025
@OS-giulianasilva OS-giulianasilva marked this pull request as ready for review May 6, 2025 11:32
@OS-giulianasilva OS-giulianasilva requested a review from a team as a code owner May 6, 2025 11:32
@OS-giulianasilva OS-giulianasilva requested a review from ShaneK May 6, 2025 11:32
Copy link
Member

@ShaneK ShaneK left a comment

Choose a reason for hiding this comment

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

Generally, we're moving towards a better way of doing defaults that makes it easier to change in the future if we need to. I've left a few change requests in specific areas, but avatar is a really good example of this paradigm in use for size.

Copy link
Member

@ShaneK ShaneK left a comment

Choose a reason for hiding this comment

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

Looks really good, great work!

@ShaneK
Copy link
Member

ShaneK commented May 7, 2025

Weirdly your screenshot tests seem to have failed even though you updated them after pushing 🤔 I guess maybe try updating them again? If nothing changes then run your tests again? Very odd!

@OS-giulianasilva OS-giulianasilva merged commit 7fec492 into next May 7, 2025
48 checks passed
@OS-giulianasilva OS-giulianasilva deleted the ROU-11848 branch May 7, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants