#guizhong_10139
1 messages · Page 1 of 1 (latest)
Did you set spacedAccordionItems to true when creating the Payment Element? https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-layout-spacedAccordionItems
yes ,
const options = {
layout: {
type: 'accordion',
defaultCollapsed: true,
radios: false,
spacedAccordionItems: true
},
fields: {
billingDetails: 'never'
}
}
But it doesn't work for collapsed lists
Does spacingGridRow or spacingTab works? Wild guess from the list here https://stripe.com/docs/elements/appearance-api?platform=web#additional-variables
This spacingGridRow
The two attributes of spacingTab have no effect. I have tried many attributes in this article and they have no effect. Did you add the attribute to change the margin of this style?
This is partly because there are too many payment methods open, and the stripe folds itself, but the folded style does not have margin attributes
I see. If you have tried everything on that list, I am afraid there is nothing more I can offer :/ Sorry. If you open that place in inspector would you see any class name which seem to be able to override?
This attribute can change its style, but it is invalid to add it directly in my code
Is p-PaymentAccordionOverflowButton the "Credit or Debit Card" row?
No, it's the More line
How about top margin of the "Credit or Debit Card" line? If you try to change it and which class name
The expanded margins of these three payment methods are normal. If I modify the margins of the credit card row below, their styles will be too large after expanded
The last image, the space between "Credit and Debit card" and the bottom red line, where does that space come from?
Sorry, lunch break at noon
Ahh so it comes from IDEAL. Meaning each row has the margin and works nicely on expansion. But collapsed it will lack the space
So the More line actually lacking a margin bottom
Yes, More is missing margin at the bottom, now I can't add margin for him
Sorry this looks like an UI bug. Could you write into Support and include a public accessible URL which can reproduce?
What is the email address of the technical department?
Just write to Support as normal
:question: Have a non-technical question, account issue, or need one-on-one support?
We wish we could help, but this community is focused on developers and technical discussions. Our support team will be able to assist you better than we can: https://support.stripe.com/contact
And mention this Discord thread URL
Oh, I have only contacted your technical support on this website, and have not written anywhere else, I don't really understand this
You can contacted again and mentioned this thread URL. We will be able to assist via a more concrete investigation
do i need to recreate a theme? or how to do
You can use this link, and when to input details, put this Discord thread URL
ok