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

Add FXIOS-9056 - Add configuration to toolbar button to render text inside image #20184

Conversation

PARAIPAN9
Copy link
Collaborator

@PARAIPAN9 PARAIPAN9 commented May 9, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

  • This PR adds the TabNumberButton class, responsible for displaying the number of open tabs. Currently in draft status because the animation has not yet been added.
Normal Highlighted
normal highlighted

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@PARAIPAN9 PARAIPAN9 requested a review from thatswinnie May 9, 2024 11:23
@isabelrios
Copy link
Contributor

Please use latest changes in main to have your PR running. Thanks!

@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented May 9, 2024

Warnings
⚠️ Variable 'crossCircleFill' in Medium is out of alphabetical order.
⚠️ Variable 'cross' in Medium is out of alphabetical order.
Messages
📖 Edited 4 files
📖 Created 3 files

Generated by 🚫 Danger Swift against 90794a6

// MARK: - UX Constants
struct UX {
static let cornerRadius: CGFloat = 2
static let titleFont = UIFont.boldSystemFont(ofSize: 11)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use FXFontStyles here.


// Tab count related constants
static let defaultCountLabelText = "0"
static let maxTabCountToShowInfinity = 100
Copy link
Contributor

Choose a reason for hiding this comment

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

According to the logic later in code the last number displayed is 99. I suggest to change the constant here and adjust the logic accordingly.

@PARAIPAN9 PARAIPAN9 marked this pull request as ready for review May 13, 2024 10:45
@PARAIPAN9 PARAIPAN9 requested a review from a team as a code owner May 13, 2024 10:45
@PARAIPAN9 PARAIPAN9 requested review from OrlaM and removed request for OrlaM May 13, 2024 10:45
Copy link
Contributor

mergify bot commented May 13, 2024

This pull request has conflicts when rebasing. Could you fix it @PARAIPAN9? 🙏

@@ -101,6 +101,7 @@ public struct StandardImageIdentifiers {
public static let subtract = "subtractLarge"
public static let sync = "syncLarge"
public static let syncTabs = "syncTabsLarge"
public static let tabNumber = "tabNumberLarge"
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this image coming from? The Acorn icon library doesn't have an image named this way. Only images found in Acorn should be added to StandardImageIdentifiers. Please use tab instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I hadn't found it, so I took it from the Client.

@PARAIPAN9 PARAIPAN9 merged commit 96b741b into main May 14, 2024
13 checks passed
@PARAIPAN9 PARAIPAN9 deleted the sparaipan/fxios-9056-Add-configuration-to-toolbar-button-to-render-text-inside-image branch May 14, 2024 11:45
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.

None yet

4 participants