Credit iframes have width 1px
-
The Woocommerce Stripe plugin presents iframes with a width of 1px at checkout (simialr to another issue on Apple pay button that is unresolved and may be related to the use of Elementor)
class-wc-gateway-stripe.php includes the following at around line 300:
<div id="stripe-card-element" class="wc-stripe-elements-field"> <!-- a Stripe Element will be inserted here. --> </div>
When JS replaces the inner elements the iframe inserted includes style with “width: 1px !important”
A simple work around is nigh impossible in CSS, because the element style includes “!important”. Even a JS would be very complex, because changes would have to be made only after the inner elements have been inserted
Any ideas how to sort this; even a workaround would be good
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Credit iframes have width 1px’ is closed to new replies.