-
Notifications
You must be signed in to change notification settings - Fork 664
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
Fix LinkButton shape #10094
Fix LinkButton shape #10094
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to write a screenshot test with the fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we actually just remove the wrapping Surface
in DefaultLinkTheme
? We shouldn't have components wrapping our themes. They should just be providers for values.
Diffuse output:
APK
|
There are some in |
import org.junit.Rule | ||
import org.junit.Test | ||
|
||
private enum class LinkButtonAppearance(val appearance: PaymentSheet.Appearance) : PaparazziConfigOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good usage of everything. Nice!
paymentsheet/src/test/java/com/stripe/android/link/ui/LinkButtonScreenshotTest.kt
Outdated
Show resolved
Hide resolved
…onScreenshotTest.kt Co-authored-by: Jay Newstrom <[email protected]>
Summary
Set
contentShape
inDefaultLinkTheme
forLinkButton
Motivation
The Link Button is wrapped by a component with a different corner radius. It becomes obvious when we change the background color with the appearance API.

Testing
Screenshots
Changelog