Skip to content
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

Accidental styling of card method fields in gateway test meta box #174

Open
rvdsteege opened this issue Mar 22, 2024 · 0 comments
Open

Accidental styling of card method fields in gateway test meta box #174

rvdsteege opened this issue Mar 22, 2024 · 0 comments

Comments

@rvdsteege
Copy link
Member

The PaymentMethods::CARD payment method results in a bordered box in the gateway test meta box if the method has fields (such as with Mollie, in which case it is showing as an empty box because the field is only supported in WooCommerce):

Scherm­afbeelding 2024-03-22 om 12 13 22

This is caused by the payment method ID card being added as class, for which WordPress applies styling in the admin:

<?php foreach ( $payment_methods as $payment_method ) : ?>
<?php foreach ( $payment_method->get_fields() as $field ) : ?>
<tr class="pronamic-pay-cloack pronamic-pay-test-payment-method <?php echo esc_attr( $payment_method->get_id() ); ?>">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant