From 8bb14d6b2071903edac4d8283536893228443772 Mon Sep 17 00:00:00 2001 From: Anh Do Date: Wed, 20 Nov 2024 12:18:04 -0500 Subject: [PATCH] Address PR comments --- .../Feedback/UnifiedFeedbackRootView.swift | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/DuckDuckGo/Subscription/Feedback/UnifiedFeedbackRootView.swift b/DuckDuckGo/Subscription/Feedback/UnifiedFeedbackRootView.swift index 2e2c62f7a8..44d11d24f0 100644 --- a/DuckDuckGo/Subscription/Feedback/UnifiedFeedbackRootView.swift +++ b/DuckDuckGo/Subscription/Feedback/UnifiedFeedbackRootView.swift @@ -142,6 +142,7 @@ struct UnifiedFeedbackCategoryView some View { ScrollView { ScrollViewReader { scrollView in VStack { - VStack(alignment: .leading, spacing: 10) { + VStack(alignment: .leading, spacing: 0) { header() - .padding(.horizontal, 4) + .padding(.horizontal, 16) + .padding(.vertical, 10) IssueDescriptionTextEditor(label: UserText.pproFeedbackFormTextBoxTitle, placeholder: placeholder, text: $viewModel.feedbackFormText, focusState: $isTextEditorFocused, scrollViewProxy: scrollView) + .padding(.bottom, 10) Text(UserText.pproFeedbackFormEmailLabel) .font(.caption) .textCase(.uppercase) .foregroundColor(.secondary) - .padding(.horizontal, 2) + .padding(.horizontal, 16) + .padding(.bottom, 4) TextField(UserText.pproFeedbackFormEmailPlaceholder, text: $viewModel.userEmail) .font(.body) .foregroundColor(.primary) @@ -259,13 +268,14 @@ private struct IssueDescriptionFormView: View { .background( ZStack { RoundedRectangle(cornerRadius: 8.0) - .stroke(Color(designSystemColor: .surface), lineWidth: 0.4) + .stroke(textFieldBackgroundColor, lineWidth: 0.4) RoundedRectangle(cornerRadius: 8.0) - .fill(Color(designSystemColor: .surface)) + .fill(textFieldBackgroundColor) } ) footer() - .padding(.horizontal, 4) + .padding(.horizontal, 16) + .padding(.vertical, 10) } .foregroundColor(.secondary) .background(Color(designSystemColor: .background)) @@ -351,7 +361,7 @@ private struct IssueDescriptionTextEditor: View { .font(.caption) .textCase(.uppercase) .foregroundColor(.secondary) - .padding(.horizontal, 4) + .padding(.horizontal, 16) TextEditorWithPlaceholder(text: text, placeholder: placeholder) .font(.body) .foregroundColor(.primary)