woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout-shared
Alex Florisca 006fbc6714
Add new buttonAttributes API to style express checkout buttons coherently (#47899)
* Expose buttonAttributes to the express payment methods

* Add size and label attributes to the express checkout area

* Remove defaultHeight

* default button Label

* Remove the button label attribute

* Remove px from height

* Change large button height to 55px

* Load express checkout block with attributes

* Add toggle and borderRadius controls and remove getting border radius from the theme

* Remove extra border radius text

* Only pass buttonAttributes if toggled on

* Move express payment block attribute logic into a Provider

* Tidy up editor grid and parse attributes into context on frontend

* Add px to border-radius input

* Express payment methods not selectable

* Add a test

* lint fixes

* default button height is 48 not 4

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Update docs

* Add tests for express payment methods

* Center images within the express payment area in the editor

* Apply the buttonAttributes to the li container in the editor regardless of showButtonStyles

* Fix style issue

* fix linting

* fix lint again

* Update manifest

* Update docs manifest

* Resize images in editor

* lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-14 11:02:58 +01:00
..
block-settings Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
payment-methods Add new buttonAttributes API to style express checkout buttons coherently (#47899) 2024-08-14 11:02:58 +01:00
sidebar-notices remove the generic incompatible notice from Checkout block. (#47475) 2024-05-16 16:52:06 +02:00
use-forced-layout Replace Products (Beta) with Product Collection in product archive templates (#48112) 2024-06-12 15:45:09 +02:00
view-switcher Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
editor-utils.ts Add `additionalCartCheckoutInnerBlockTypes` filter to enable additional blocks in the Cart/Checkout blocks. (https://github.com/woocommerce/woocommerce-blocks/pull/8650) 2023-03-28 05:33:28 -07:00
hacks.ts Replace react imports with wordpress/element (https://github.com/woocommerce/woocommerce-blocks/pull/8520) 2023-03-02 15:26:00 +01:00
icon.js Update express checkout title, description, icon (https://github.com/woocommerce/woocommerce-blocks/pull/10237) 2023-07-27 09:08:29 +01:00
index.js Refactor View Switcher to use Block Attributes (https://github.com/woocommerce/woocommerce-blocks/pull/8006) 2022-12-22 14:35:24 +00:00