Merge pull request #977 from woocommerce/PCP-792-introduce-validation-for-mini-cart-button-height-setting

Introduce validation for mini cart button height setting
This commit is contained in:
Emili Castells 2022-11-14 16:29:21 +01:00 committed by GitHub
commit a740475be3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1807,17 +1807,21 @@ return array(
'gateway' => 'paypal',
),
'button_mini-cart_height' => array(
'title' => __( 'Button Height', 'woocommerce-paypal-payments' ),
'type' => 'number',
'default' => '35',
'desc_tip' => true,
'description' => __( 'Add a value from 25 to 55.', 'woocommerce-paypal-payments' ),
'screens' => array(
'title' => __( 'Button Height', 'woocommerce-paypal-payments' ),
'type' => 'number',
'default' => '35',
'custom_attributes' => array(
'min' => 25,
'max' => 55,
),
'desc_tip' => true,
'description' => __( 'Add a value from 25 to 55.', 'woocommerce-paypal-payments' ),
'screens' => array(
State::STATE_START,
State::STATE_ONBOARDED,
),
'requirements' => array(),
'gateway' => 'paypal',
'requirements' => array(),
'gateway' => 'paypal',
),
'button_mini-cart_preview' => array(
'type' => 'ppcp-text',