From 1aef43cfc9c4a1fc8fd4fb2ea05f1eea27d02486 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Tue, 7 Sep 2021 17:06:53 +0200 Subject: [PATCH] Add classed to Woo checkout optin to match other checkboxes [MAILPOET-3498] --- lib/WooCommerce/Subscription.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/WooCommerce/Subscription.php b/lib/WooCommerce/Subscription.php index 8fb2c2df9e..9ae820a850 100644 --- a/lib/WooCommerce/Subscription.php +++ b/lib/WooCommerce/Subscription.php @@ -82,6 +82,8 @@ class Subscription { [ 'type' => 'checkbox', 'label' => $this->wp->escHtml($labelString), + 'input_class' => ['woocommerce-form__input', 'woocommerce-form__input-checkbox', 'input-checkbox'], + 'label_class' => ['woocommerce-form__label', 'woocommerce-form__label-for-checkbox', 'checkbox'], 'custom_attributes' => ['data-automation-id' => 'woo-commerce-subscription-opt-in'], 'return' => true, ],