Add classed to Woo checkout optin to match other checkboxes

[MAILPOET-3498]
This commit is contained in:
Rostislav Wolny
2021-09-07 17:06:53 +02:00
committed by Veljko V
parent 250b818be6
commit 1aef43cfc9

View File

@@ -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,
],