Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Add styles to the Start shopping button (#8766)
Browse files Browse the repository at this point in the history
  • Loading branch information
albarin authored Mar 16, 2023
1 parent 8624555 commit 675754c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"html": false,
"multiple": false,
"reusable": false,
"inserter": true
"inserter": true,
"color": {
"text": true,
"background": true
}
},
"attributes": {
"lock": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
};
Expand Down

0 comments on commit 675754c

Please sign in to comment.