Register support for height and borderRadius controls for the PayPal Express button

This commit is contained in:
Daniel Dudzic 2024-10-31 12:14:59 +01:00
parent 79cdf84618
commit f9a7ce9880
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -823,7 +823,7 @@ if ( block_enabled ) {
name: config.id,
label: <div dangerouslySetInnerHTML={ { __html: config.title } } />,
content: <PayPalComponent isEditing={ false } />,
edit: <BlockEditorPayPalComponent fundingSource={ 'paypal' }/>,
edit: <BlockEditorPayPalComponent fundingSource={ 'paypal' } />,
ariaLabel: config.title,
canMakePayment: () => {
return true;
@ -883,6 +883,7 @@ if ( block_enabled ) {
},
supports: {
features,
style: [ 'height', 'borderRadius' ],
},
} );
}