Skip to content

Commit

Permalink
[MOBILESDK-2482] Apply appearance API typography to dialog buttons (#…
Browse files Browse the repository at this point in the history
…9850)

* Apply appearance API typography to dialog buttons by assigning correct style.

* Update screenshots

* Update screenshots from bitrise

* Add confirm close dialog tests with all appearances.

* Update confirm close dialog tests with all appearances.

* Update screenshots to align with bitrise
  • Loading branch information
cttsai-stripe authored Jan 4, 2025
1 parent eddadab commit a318b6a
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fun SimpleDialogElementUI(
} else {
Color.Unspecified
},
style = MaterialTheme.typography.body1
)
}
},
Expand All @@ -70,7 +71,10 @@ fun SimpleDialogElementUI(
onDismissListener()
}
) {
Text(dismissText)
Text(
text = dismissText,
style = MaterialTheme.typography.body1
)
}
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ internal class CustomerSheetScreenshotTest {
.fillMaxWidth(),
)

@get:Rule
val paparazziWithEveryAppearance = PaparazziRule(
SystemAppearance.entries,
FontSize.entries,
PaymentSheetAppearance.entries,
boxModifier = Modifier
.padding(0.dp)
.fillMaxWidth(),
)

@get:Rule
val coroutineRule = CoroutineTestRule()

Expand Down Expand Up @@ -300,7 +310,7 @@ internal class CustomerSheetScreenshotTest {

@Test
fun testConfirmCloseDialog() {
paparazzi.snapshot {
paparazziWithEveryAppearance.snapshot {
CustomerSheetScreen(
viewState = addPaymentMethodViewState.copy(
paymentMethodCode = PaymentMethod.Type.USBankAccount.code,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a318b6a

Please sign in to comment.