#derjanni-paymentelement-appearance
1 messages · Page 1 of 1 (latest)
thanks.
any Chr432 an change. to
any chan4e32
any chance to get ird of t1
any chance to get rid of this discord thing?
what discord thing?
what happend to the guys on libera?
a few of us hang out on Libera gut most users prefer meeting us here
so I understand your context here
any chance to get rid of this discord thing?
why do you say that?
it^ 22ß97
It d132
it
This discord is going mental on my machine.
sry
I am v13412
I am very sorry.
I'm struggling with the Elements Appearance API to change the color of the outline of selected Input-fields. Any idea on how to get rid of the blue?
sure give me a sec
👋 I'm just hopping in to help! @coral cypress give me a moment to check the appearance api
Please keep all your messages in this thread, and don't cross post them to the man #dev-help channel
This is your thread - just to keep it simple you can put all your messages here. @gloomy mortar tagging in case you want to follow along
understood
Sorry it's taking a while - it's not behaving like I thought it would
"It" being the appearance API to try and remove that blue outline on the focused input fields
ah ok
The whole thing shows really weird behaviour and I don't know why it has animations, it's seriously draining batteries on mobile.
Haven't found any info on where to turn it all off. As you can see from my source, I already disabled all themes.
My org is 100% PCI DSS compliant and audited, but I don't really want to go down the path and implement each payment method myself.
Phew! Finally got it to work - I was editing the wrong variables 😦
Okay, so is your goal to remove that blue border entirely?
If you want to remove the outline entirely, you can set outline: 'none', for .Input:focus and that should remove the blue outline entirely
thank you, it is working now.
Glad to hear!
sorry to bother you again, but do you know how to disable the animations?
https://stripe.com/docs/stripe-js/appearance-api <-- the docs onfortunately do not have any information on that.
No bother at all. Always happy to help.
I do not know that one immediately. Looking in to it and will get back to you
I am still looking in to how these animations work. Have you tried setting the transition property with a rule? (all the way at the bottom of https://stripe.com/docs/stripe-js/appearance-api#supported-css-properties)
Customize the look and feel of Elements to match the design of your site.
of which element?
it's the p-PaymentDetails element and the docs say that I am not supposed to touch it.
Apologies I mixed up some of our elements lingo
I don't recognize "p-PaymentDetails " can you link to our doc or example where you are seeing that?
It's the element with the animation, but the docs say I am not supposed to touch the p-* elements, however I cannot disable the weird animations.
This is not meant to be offensive, but these crazy animations look really "childish" (quote from a customer of ours) and I cannot have them in my production software.
I really don't want to implement the entire UI for all fop myself
Thanks for the clarification. Looking in to what we can do here.
Want to make sure I am communicating properly with my colleagues on this: how did you determine that it is the p-PaymentDetails class specifically that needs its animations disabled here?
I debugged the client-side javascript in the iframe and Firefox said that that is the element causing the CPU-drain
it also contains a class called "is-animatable", but there's no info on how to disable it.
Both SpiderMonkey and V8 are really struggling to keep the framerate up with the animation. It is unnecessary for my usecase and my customers don't like it. They want it to go.
clientSecret,
appearance: {
theme: 'none',
rules: {
'.Action, .Block, .BlockAction, .Button, .CheckboxInput, .CheckboxLabel, .CodeInput, .Error, .Icon, .Input, .Label, .MenuAction, .MenuIcon, .PickerAction, .PickerItem, .RedirectText, .SecondaryLink, .Switch, .SwitchControl, .Tab, .TabIcon, .TabLabel, .TermsLink, .TermsText, .Text': {
transition: 'none',
},
},
},
});```
That will disable many but not all animations. I will raise feedback internally about being able to disable all of them
Are there specific animations you are looking to disable?
tried it, did not disable a single animation. Sorry.
Also the card number field has an animation of the card logos.
That animation specifically serves no purpose.
I have a deadline in 2 weeks. Do you think this is doable or shall I implement the entire UI myself?
@coral cypress hello, your msg is here right