-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to style pseudo classes for the Adyen input fields #2677
Comments
Hello @ashrafnazar What would be the objective here? I ask because we are going to be rolling out CSS variables in V6 and you will be able to customise it that way. |
Hey @m1aw - it's to match our current designs, so when a user tabs through to an input field, or is on it, then we would like the outline property to change, i.e. its stroke width and colour. Hope that makes sense |
Is it currently not possible just by using CSS? |
Hi @m1aw - because the input fields are inside iframes, I don't think it's as simple as updating the CSS. Unless I'm mistaken? |
@m1aw I've been told that I can style the parent element, i.e. the span with the |
Do we have any update on this? |
Hey @ashrafnazar, This may not be the best way, but I was able to overwrite Adyen css for the focus state
Hope this helps |
Hi @DeekshithShetty - are you integrating using Adyen's Drop-in component? |
@ashrafnazar Yes. I am using the Drop-in component |
@DeekshithShetty - unfortunately, this won't apply in my case, as my input fields are custom |
This issue is stale because it has been open 30 days with no activity. Please comment on this issue otherwise it will be closed in 7 days. |
Comment to keep issue open |
@ashrafnazar Are you using |
@ribeiroguilherme - I'm using v5 and |
How are you creating your component? Are you using |
The version we are using is |
@ashrafnazar You can set an In this example we add/remove a class that controls the border & outline properties of the element. |
Is your feature request related to a problem? Please describe.
I would like to be able to style a pseudo class in
:focus
, for the input fields in the AdyenCheckout instance.Describe the solution you'd like
A way to style pseudo classes, so potentially an
onFocus
property in theCoreOptions
interface or a way to do the same thing inside thestyles
object, as part of the PaymentMethodOptions generic type.Describe alternatives you've considered
I've attempted to use the second argument (element) inside the
onChange
property within theCoreOptions
interface, but have not found a way to do so.Additional context
N/A
The text was updated successfully, but these errors were encountered: