Skip to content

Scale error fonts in payment sheet #5125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

gbirch-stripe
Copy link
Contributor

@gbirch-stripe gbirch-stripe commented Jul 8, 2025

Summary

Payment sheet error and "smallFootnote" text changed to conform to Appearance API font settings (base font, scale).

Motivation

Testing

Updated snapshot tests which already over this case

Changelog

[Fixed] Form error text not respecting Appearance API font settings

@gbirch-stripe gbirch-stripe marked this pull request as ready for review July 9, 2025 14:14
@gbirch-stripe gbirch-stripe requested review from a team as code owners July 9, 2025 14:14
@@ -1081,6 +1081,8 @@ extension PaymentSheet.Appearance {
fonts.sectionHeader = scaledFont(for: font.base.medium, style: .footnote, maximumPointSize: 18)
fonts.caption = scaledFont(for: font.base.regular, style: .caption1, maximumPointSize: 20)
fonts.footnote = scaledFont(for: font.base.regular, style: .footnote, maximumPointSize: 20)
fonts.error = scaledFont(for: font.base.regular, style: .caption2, maximumPointSize: 20)
fonts.smallFootnote = scaledFont(for: font.base.medium, style: .caption2, maximumPointSize: 18)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anywhere in particular the maximumPointSizes came from? Non-blocking and they seem like reasonable values but just wondering

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was unable to find a definitive source for these numbers but decided to keep them in line with the rest of the UI

@gbirch-stripe gbirch-stripe merged commit 1b4af18 into master Jul 10, 2025
6 checks passed
@gbirch-stripe gbirch-stripe deleted the gbirch/scale-card-format-error-RUN_MOBILESDK-4439 branch July 10, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants