Skip to content

Commit

Permalink
Remove default horizontal padding in embedded. (#9793)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynewstrom-stripe authored Dec 17, 2024
1 parent 2f51601 commit b1d4116
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.unit.dp
import com.stripe.android.core.strings.ResolvableString
import com.stripe.android.paymentsheet.R
import com.stripe.android.paymentsheet.ui.Mandate
import com.stripe.android.paymentsheet.verticalmode.PaymentMethodVerticalLayoutInteractor
import com.stripe.android.paymentsheet.verticalmode.PaymentMethodVerticalLayoutUI
Expand All @@ -22,10 +20,8 @@ internal data class EmbeddedContent(
) {
@Composable
fun Content() {
val horizontalPadding = dimensionResource(R.dimen.stripe_paymentsheet_outer_spacing_horizontal)
Column(
modifier = Modifier
.padding(horizontal = horizontalPadding)
.padding(top = 8.dp)
) {
EmbeddedVerticalList()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.stripe.android.paymentelement.embedded

import androidx.compose.foundation.layout.padding
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.stripe.android.core.strings.resolvableString
import com.stripe.android.lpmfoundations.paymentmethod.PaymentMethodMetadataFactory
import com.stripe.android.paymentsheet.verticalmode.FakePaymentMethodVerticalLayoutInteractor
Expand All @@ -9,7 +12,7 @@ import kotlin.test.Test

internal class EmbeddedContentScreenshotTest {
@get:Rule
val paparazziRule = PaparazziRule()
val paparazziRule = PaparazziRule(boxModifier = Modifier.padding(horizontal = 20.dp))

@Test
fun displaysVerticalModeList() {
Expand Down

0 comments on commit b1d4116

Please sign in to comment.