-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(button): add icon alone UIKit VitaminButton type, and refactor icon management #75
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
I have just a few minor suggestions. I let you check.
Co-authored-by: Florent LOTTHÉ <[email protected]>
Co-authored-by: Florent LOTTHÉ <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
👍 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Some problems have been detected on existing buttons, but since they are already released, I just opened a new issue #77 and merge this feature. |
Changes description
I added the ability to define a 'icon Alone' version of VitaminButton.
I also reworked the way to specify which type of icon you want (for already existing trailing and leading icons)
And I took advantage of this PR to change icon size on large and medium button (see #74)
Context
Checklist
Does this introduce a breaking change?
I deprecated some methods, but they are still usable, the will just raise a warning.
Screenshots
iPhone
iPad
Other information
I am not sure it is Vitamin compliant, but I reworked the code to give the ability to have different icons for different states (that was allowed before by the previous code, but did not work well)