#josh_paymentelement-skeleton
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1485679615513989205
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- josh_googlepay-firefox, 3 days ago, 16 messages
josh_paymentelement-skeleton
@forest lodge can I ask for a bit more details like a video repro and/or a live demo?
gotcha. Based on the layout it seems you have a "parent div" around it and then something below, I wonder if you have a max height or similar that causes this.
Can you share a URL where I can see this live and compare?
I threw it on a new page and it is the same issue.
I threw in a debugger at loaderstart... it looks like it is calculated at 321px? But 335px seems to show the full loader.
Can you maybe share more than the picture? Which browser is this
Sorry, I'm lacking details to reproduce at this point.
Yeah looks like it reproduces in Chrome as well as FireFox. Can you share out a sandbox with the shimmer working? I'll work on eliminating things.
https://4242.io/test/payment-element/ works fine for me for example, that's why I'm not fully grasping the problem yet.
So same for you, can you share a demo where it doesn't work?
Getting closer to repro... looks like it relates to appearance
Do you have a condensed demo?
what does "condensed" mean?
yeah I've seen this before too and we've patched those recently. So you likely have some option that I don't. I tried multiple of my local demos but they all appear to work. But it's also really subtle for me since it loads really fast
inputs: 'condensed',
Doh let me keep eliminating appearance settings
do you have a live page I can load? Even with just ngrok or similar?
I can get something this afternoon
Can you share your current code?
I want to flag to the product team to be safe and they might just know from the basic code
Yeah let me get it
Ok looks like .Label with a custom line height causes the issue.
inputs: 'condensed',
rules: {
'.Input--invalid': {
borderColor: COLOR_TEXT_ERROR
},
'.Label': {
color: COLOR_TEXT_TERTIARY,
fontSize: `${FONT_SIZE_200 / 16}rem`,
letterSpacing: `${FONT_LETTERSPACING_200 / 16}rem`
lineHeight: String(FONT_LINEHEIGHT_DEFAULT)
},
'.Error': {
fontSize: `${FONT_SIZE_100 / 16}rem`,
fontWeight: String(FONT_WEIGHT_NORMAL)
}
},
variables: {
colorDanger: COLOR_TEXT_ERROR,
fontFamily: `${FONT_FAMILY_PRIMARY}, sans-serif`
}
},```
export const FONT_LINEHEIGHT_DEFAULT = 1.5;
I might have to disappear to meetings but I can check my messages later today
all good, if you have more code that'd help you have hardcoded variables here that I have to invent
cc @forest lodge in case you do see this
okay I was able to guess values and reproduce and flagged to the product team
Thank you!