Skip to content

Commit d2936a8

Browse files
authored
Merge pull request #9824 from woocommerce/issue/privacy-choices-alignments
[Privacy Choices] Toggle Descriptions Alignments
2 parents c3917c8 + f6ac285 commit d2936a8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Privacy/PrivacyBannerViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ struct PrivacyBanner: View {
8383

8484
Text(Localization.toggleSubtitle)
8585
.subheadlineStyle()
86+
.padding(.trailing, Layout.toggleDescriptionMargin)
8687

8788
HStack {
8889
Button(Localization.goToSettings) {
@@ -133,6 +134,7 @@ private extension PrivacyBanner {
133134

134135
enum Layout {
135136
static let mainVerticalSpacing = CGFloat(8)
137+
static let toggleDescriptionMargin = CGFloat(40)
136138
}
137139
}
138140

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Privacy/PrivacySettingsViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ private extension PrivacySettingsViewController {
345345
if isPrivacyChoicesEnabled {
346346
cell.textLabel?.applySubheadlineStyle()
347347
cell.textLabel?.textColor = .textSubtle
348+
cell.contentView.directionalLayoutMargins = .init(top: 0, leading: 0, bottom: 0, trailing: Constants.toggleDescriptionMargin)
348349
}
349350
}
350351

@@ -596,6 +597,7 @@ private struct Constants {
596597
static let headerTitleInsets = UIEdgeInsets(top: 16, left: 14, bottom: 32, right: 14)
597598
static let footerInsets = UIEdgeInsets(top: 8, left: 16, bottom: 16, right: 16)
598599
static let footerPadding = CGFloat(44)
600+
static let toggleDescriptionMargin = CGFloat(40)
599601
}
600602

601603
private struct Section {

0 commit comments

Comments
 (0)