Add styles to the `Start shopping` button (https://github.com/woocommerce/woocommerce-blocks/pull/8766)
This commit is contained in:
parent
235b37a626
commit
dca03c3323
|
@ -9,7 +9,11 @@
|
|||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": true
|
||||
"inserter": true,
|
||||
"color": {
|
||||
"text": true,
|
||||
"background": true
|
||||
}
|
||||
},
|
||||
"attributes": {
|
||||
"lock": {
|
||||
|
|
|
@ -22,22 +22,23 @@ export const Edit = ( {
|
|||
const { startShoppingButtonLabel } = attributes;
|
||||
|
||||
return (
|
||||
<div { ...blockProps }>
|
||||
<div className="wp-block-button aligncenter">
|
||||
<Button className="wc-block-mini-cart__shopping-button">
|
||||
<RichText
|
||||
multiline={ false }
|
||||
allowedFormats={ [] }
|
||||
value={ startShoppingButtonLabel }
|
||||
placeholder={ defaultStartShoppingButtonLabel }
|
||||
onChange={ ( content ) => {
|
||||
setAttributes( {
|
||||
startShoppingButtonLabel: content,
|
||||
} );
|
||||
} }
|
||||
/>
|
||||
</Button>
|
||||
</div>
|
||||
<div className="wp-block-button aligncenter">
|
||||
<Button
|
||||
{ ...blockProps }
|
||||
className="wc-block-mini-cart__shopping-button"
|
||||
>
|
||||
<RichText
|
||||
multiline={ false }
|
||||
allowedFormats={ [] }
|
||||
value={ startShoppingButtonLabel }
|
||||
placeholder={ defaultStartShoppingButtonLabel }
|
||||
onChange={ ( content ) => {
|
||||
setAttributes( {
|
||||
startShoppingButtonLabel: content,
|
||||
} );
|
||||
} }
|
||||
/>
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue