woocommerce/docs/cart-and-checkout-blocks
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
..
available-filters Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00
checkout-payment-methods Add new buttonAttributes API to style express checkout buttons coherently (#47899) 2024-08-14 11:02:58 +01:00
hooks Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00
README.md Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00
additional-checkout-fields.md Update additional-checkout-fields.md (#50377) 2024-08-13 12:03:21 +01:00
available-slot-fills.md Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00
dom-events.md Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00
how-checkout-processes-an-order.md Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00
integration-interface.md Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00
slot-fills.md Move checkout docs to main v2 (#49984) 2024-08-02 20:12:06 +02:00

README.md

category_title category_slug post_title
Cart and Checkout Blocks cart-and-checkout-blocks Cart and Checkout blocks - Extensibility