mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Merge pull request #2944 from woocommerce/PCP-4023-adjust-features-button-styles
This commit is contained in:
commit
4f2cf548e8
3 changed files with 12 additions and 3 deletions
|
@ -97,6 +97,8 @@
|
||||||
span {
|
span {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
margin-top:24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ const FeatureSettingsBlock = ( { title, description, ...props } ) => {
|
||||||
<div className="ppcp-r-feature-item__buttons">
|
<div className="ppcp-r-feature-item__buttons">
|
||||||
{ props.actionProps?.buttons.map( ( button ) => (
|
{ props.actionProps?.buttons.map( ( button ) => (
|
||||||
<Button
|
<Button
|
||||||
|
className={ button.class ? button.class : '' }
|
||||||
href={ button.url }
|
href={ button.url }
|
||||||
key={ button.text }
|
key={ button.text }
|
||||||
variant={ button.type }
|
variant={ button.type }
|
||||||
|
|
|
@ -231,6 +231,7 @@ const featuresDefault = [
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
type: 'secondary',
|
type: 'secondary',
|
||||||
|
class: 'small-button',
|
||||||
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
||||||
url: '#',
|
url: '#',
|
||||||
},
|
},
|
||||||
|
@ -254,6 +255,7 @@ const featuresDefault = [
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
type: 'secondary',
|
type: 'secondary',
|
||||||
|
class: 'small-button',
|
||||||
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
||||||
url: '#',
|
url: '#',
|
||||||
},
|
},
|
||||||
|
@ -277,6 +279,7 @@ const featuresDefault = [
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
type: 'secondary',
|
type: 'secondary',
|
||||||
|
class: 'small-button',
|
||||||
text: __( 'Apply', 'woocommerce-paypal-payments' ),
|
text: __( 'Apply', 'woocommerce-paypal-payments' ),
|
||||||
url: '#',
|
url: '#',
|
||||||
},
|
},
|
||||||
|
@ -297,6 +300,7 @@ const featuresDefault = [
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
type: 'secondary',
|
type: 'secondary',
|
||||||
|
class: 'small-button',
|
||||||
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
||||||
url: '#',
|
url: '#',
|
||||||
},
|
},
|
||||||
|
@ -306,9 +310,6 @@ const featuresDefault = [
|
||||||
url: '#',
|
url: '#',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
notes: [
|
|
||||||
__( '¹PayPal Q2 Earnings-2021.', 'woocommerce-paypal-payments' ),
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'apple_pay',
|
id: 'apple_pay',
|
||||||
|
@ -320,6 +321,7 @@ const featuresDefault = [
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
type: 'secondary',
|
type: 'secondary',
|
||||||
|
class: 'small-button',
|
||||||
text: __(
|
text: __(
|
||||||
'Domain registration',
|
'Domain registration',
|
||||||
'woocommerce-paypal-payments'
|
'woocommerce-paypal-payments'
|
||||||
|
@ -343,6 +345,7 @@ const featuresDefault = [
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
type: 'secondary',
|
type: 'secondary',
|
||||||
|
class: 'small-button',
|
||||||
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
text: __( 'Configure', 'woocommerce-paypal-payments' ),
|
||||||
url: '#',
|
url: '#',
|
||||||
},
|
},
|
||||||
|
@ -352,6 +355,9 @@ const featuresDefault = [
|
||||||
url: '#',
|
url: '#',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
notes: [
|
||||||
|
__( '¹PayPal Q2 Earnings-2021.', 'woocommerce-paypal-payments' ),
|
||||||
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue