Skip to content

Commit 2ee2de0

Browse files
committed
Update action button content edge insets to match with previous style
1 parent a672722 commit 2ee2de0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WooCommerce/Classes/Tools/Notices/NoticeView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private extension NoticeView {
156156
actionButton.setTitleColor(Appearance.actionColor, for: .normal)
157157
actionButton.addTarget(self, action: #selector(actionButtonTapped), for: .touchUpInside)
158158
actionButton.setContentCompressionResistancePriority(.required, for: .horizontal)
159-
actionButton.contentEdgeInsets = Metrics.layoutMargins
159+
actionButton.contentEdgeInsets = Metrics.actionButtonContentInsets
160160
actionButton.backgroundColor = Appearance.actionBackgroundColor
161161
}
162162

@@ -213,6 +213,7 @@ private extension NoticeView {
213213
enum Metrics {
214214
static let cornerRadius: CGFloat = 13.0
215215
static let layoutMargins = UIEdgeInsets(top: 16.0, left: 16.0, bottom: 16.0, right: 16.0)
216+
static let actionButtonContentInsets = UIEdgeInsets(top: 24.0, left: 16.0, bottom: 24.0, right: 16.0)
216217
static let labelLineSpacing: CGFloat = 18.0
217218
}
218219

0 commit comments

Comments
 (0)