Skip to content

Commit

Permalink
Merge pull request #741 from kiwicom/740-fix-socialbutton-paddings
Browse files Browse the repository at this point in the history
Fix SocialButton horizontal padding
  • Loading branch information
PavelHolec authored Jan 5, 2024
2 parents 5d590ea + ecf7291 commit 83ccfb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file modified Snapshots/iPad/SocialButtonTests/testSocialButtons.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Snapshots/iPhone/SocialButtonTests/testSocialButtons.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions Sources/Orbit/Components/SocialButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,18 @@ public struct SocialButton: View {
action()
} label: {
Text(label)
.fontWeight(.medium)
}
.buttonStyle(
OrbitButtonStyle {
logo
.scaledToFit()
.frame(width: .large * sizeCategory.ratio)
.padding([.leading, .vertical], -.xxSmall)
.padding(.vertical, -.xxSmall)
} trailingIcon: {
Spacer(minLength: 0)
Icon(.chevronForward)
.iconSize(.large)
.padding([.trailing, .vertical], -.xxSmall)
.padding(.vertical, -.xxSmall)
}
)
.textColor(textColor)
Expand Down

0 comments on commit 83ccfb8

Please sign in to comment.