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

ANDROID-15168 compose badge improvements #383

Merged
merged 9 commits into from
Sep 12, 2024

Conversation

jeprubio
Copy link
Contributor

@jeprubio jeprubio commented Sep 12, 2024

🥅 What's the goal?

Expose the badge text size in compose (in order to be able to limit it's font size when the font is set to 200%).
Trim it's content according to the figma specs if it has a number > 9.
Add more options to the badge in compose catalog.

🆚 Are there UI changes?

Before After
drawing drawing

🚧 How do we do it?

  • Adding a parameter to Badge to define the text size (with the current value of Unespecified by default).
  • Trim it's content according to the figma specs if it has a number > 9.
  • Add more options to the badge in compose catalog.
  • Added some screenshot tests.

☑️ Checks

  • I updated the documentation, including readmes and wikis. If this is a breaking change, tag the PR with "Breaking Change" label and remember to include breaking change migration guide in release notes where this version is released.
  • Tested with dark mode.
  • Tested with API 24.
  • Sync done with iOS team for this feature to ensure alignment, if applies.
  • Accessibility considerations.

🧪 How can I test this?

  • video
BadgeCatalog.mov

@jeprubio jeprubio changed the title ANDROID-15168 expose badge text size ANDROID-15168 expose badge text size & improve catalog Sep 12, 2024
@Telefonica Telefonica deleted a comment from github-actions bot Sep 12, 2024
@jeprubio jeprubio marked this pull request as ready for review September 12, 2024 10:37
@jeprubio jeprubio requested review from a team, jeslat, dpastor and aweell and removed request for a team September 12, 2024 10:37
@Telefonica Telefonica deleted a comment from github-actions bot Sep 12, 2024
@Telefonica Telefonica deleted a comment from github-actions bot Sep 12, 2024
@Telefonica Telefonica deleted a comment from github-actions bot Sep 12, 2024
@Telefonica Telefonica deleted a comment from github-actions bot Sep 12, 2024
Copy link

📱 New catalog for testing generated: Download

@jeprubio jeprubio changed the title ANDROID-15168 expose badge text size & improve catalog ANDROID-15168 badge improvements Sep 12, 2024
@jeprubio jeprubio changed the title ANDROID-15168 badge improvements ANDROID-15168 compose badge improvements Sep 12, 2024
Copy link

@aweell aweell left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@jeslat jeslat left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@dpastor dpastor left a comment

Choose a reason for hiding this comment

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

👍

@jeprubio jeprubio merged commit 16231f8 into main Sep 12, 2024
5 checks passed
@jeprubio jeprubio deleted the feature/ANDROID-15168-BadgeTextSize branch September 12, 2024 13:28
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.

4 participants