From 32f4111e8cbe6e5678e6b89c68580291c9a94eec Mon Sep 17 00:00:00 2001 From: Krisjanis Gaidis Date: Mon, 7 Nov 2022 17:27:07 -0500 Subject: [PATCH] Financial Connections: font fixes based off new designs. --- .../Native/Consent/ConsentBodyView.swift | 2 +- .../Native/Shared/DataAccessNoticeView.swift | 32 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift b/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift index b78153fdc92..87788188de4 100644 --- a/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift +++ b/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Consent/ConsentBodyView.swift @@ -49,7 +49,7 @@ private func CreateLabelView( iconUrl: String?, action: @escaping (URL) -> Void ) -> UIView { - let imageView = AlwaysTemplateImageView(tintColor: .textPrimary) + let imageView = AlwaysTemplateImageView(tintColor: .textSecondary) imageView.contentMode = .scaleAspectFit imageView.setImage(with: iconUrl) imageView.translatesAutoresizingMaskIntoConstraints = false diff --git a/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeView.swift b/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeView.swift index dd0196edc42..d8c1d2e9b25 100644 --- a/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeView.swift +++ b/StripeFinancialConnections/StripeFinancialConnections/Source/Native/Shared/DataAccessNoticeView.swift @@ -107,9 +107,9 @@ private func CreateContentView( } if let connectedAccountNotice = connectedAccountNotice { let connectedAccountNoticeLabel = ClickableLabel( - font: .stripeFont(forTextStyle: .caption), - boldFont: .stripeFont(forTextStyle: .captionEmphasized), - linkFont: .stripeFont(forTextStyle: .captionEmphasized), + font: .stripeFont(forTextStyle: .detail), + boldFont: .stripeFont(forTextStyle: .detailEmphasized), + linkFont: .stripeFont(forTextStyle: .detailEmphasized), textColor: .textSecondary ) connectedAccountNoticeLabel.setText(connectedAccountNotice, action: didSelectURL) @@ -135,9 +135,9 @@ private func CreateHeaderView( didSelectURL: @escaping (URL) -> Void ) -> UIView { let headerLabel = ClickableLabel( - font: .stripeFont(forTextStyle: .bodyEmphasized), - boldFont: .stripeFont(forTextStyle: .bodyEmphasized), - linkFont: .stripeFont(forTextStyle: .bodyEmphasized), + font: .stripeFont(forTextStyle: .heading), + boldFont: .stripeFont(forTextStyle: .heading), + linkFont: .stripeFont(forTextStyle: .heading), textColor: .textPrimary ) headerLabel.setText(text, action: didSelectURL) @@ -162,21 +162,21 @@ private func CreateBulletinView( let verticalLabelStackView = UIStackView() verticalLabelStackView.axis = .vertical - verticalLabelStackView.spacing = 5 + verticalLabelStackView.spacing = 2 if let title = title { let primaryLabel = ClickableLabel( - font: .stripeFont(forTextStyle: .detailEmphasized), - boldFont: .stripeFont(forTextStyle: .detailEmphasized), - linkFont: .stripeFont(forTextStyle: .detailEmphasized), + font: .stripeFont(forTextStyle: .bodyEmphasized), + boldFont: .stripeFont(forTextStyle: .bodyEmphasized), + linkFont: .stripeFont(forTextStyle: .bodyEmphasized), textColor: .textPrimary ) primaryLabel.setText(title, action: didSelectURL) verticalLabelStackView.addArrangedSubview(primaryLabel) } let subtitleLabel = ClickableLabel( - font: .stripeFont(forTextStyle: .caption), - boldFont: .stripeFont(forTextStyle: .captionEmphasized), - linkFont: .stripeFont(forTextStyle: .captionEmphasized), + font: .stripeFont(forTextStyle: .detail), + boldFont: .stripeFont(forTextStyle: .detailEmphasized), + linkFont: .stripeFont(forTextStyle: .detailEmphasized), textColor: .textSecondary ) subtitleLabel.setText(subtitle, action: didSelectURL) @@ -200,9 +200,9 @@ private func CreateLearnMoreLabel( didSelectURL: @escaping (URL) -> Void ) -> UIView { let label = ClickableLabel( - font: .stripeFont(forTextStyle: .caption), - boldFont: .stripeFont(forTextStyle: .captionEmphasized), - linkFont: .stripeFont(forTextStyle: .captionEmphasized), + font: .stripeFont(forTextStyle: .detail), + boldFont: .stripeFont(forTextStyle: .detailEmphasized), + linkFont: .stripeFont(forTextStyle: .detailEmphasized), textColor: .textSecondary ) label.setText(text, action: didSelectURL)