woocommerce/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout
Gabriel Manussakis d773bb483a
[Accessibility] Focus coupon input if it has an error (#48738)
* Focus cupon input if it has errors

* Add changelog file

* Add styles to coupon field with error on cart page

* Make coupon errors accessible on the cart page

* Add styles to coupon field with error on checkout page

* Rename coupon variables on cart

* Focus coupon field with error before updating live region on cart page

* Focus coupon field with error before updating live region on checkout page

* Remove incorrect early return

* Update coupon error notice test

* Improve coupon error message semantics

* Fix coupon errors for block based themes

* Update tests to not look for coupon errors on the notice block

* Rename coupon-error-message to coupon-error-notice

* Fix notice if coupon doesn't exist on tests

* FIx invalid coupon notice on classic theme test

* Update test for coupon inline notice

* Fix code formatting

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Fix code formatting

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Fix code formatting

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Fix code formatting

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Don't clear coupon input if code doesn't exist

* Create coupon error notice mixin

* Update coupon error notice styles

* Coupon error notice T19 compatibility

* Coupon error notice T17 compatibility

* Coupon error notice TT1 compatibility

* Coupon error notice TT compatibility

* Coupon error notice TT2 compatibility

* Coupon error notice TT3 compatibility

* Add spaces around paramenters

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Add spaces around paramenters

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Replace $red SCSS variable with a CSS one

* Keep input with the invalid coupon code after notice appears

* Fix typo in comment

Co-authored-by: Mike Jolley <mike.jolley@me.com>

* Fix typo in comment

Co-authored-by: Mike Jolley <mike.jolley@me.com>

* Break notice message into two lines

* Break if statement into two lines

---------

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
Co-authored-by: Mike Jolley <mike.jolley@me.com>
2024-08-23 19:22:28 +01:00
..
additional-fields-placeholder [Experimental] Surface additional checkout fields on Order Confirmation page (#43449) 2024-01-16 13:17:28 +00:00
cart-line-items-table Allow rendering the quantity in cart when the quantity is not editable (#49450) 2024-07-29 16:12:15 +01:00
form Add validation to select fields and add placeholder option to additional fields API (#49929) 2024-07-26 16:38:44 +00:00
local-pickup-select Update blocks JS tests to React 18 (#47383) 2024-05-15 21:33:36 +12:00
order-summary [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
payment-method-icons [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
payment-method-label [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
pickup-location update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
place-order-button Revert "[Enhancement]: Add option to show price on the place order button" (#49899) 2024-07-24 18:08:05 +02:00
policies Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
product-backorder-badge update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
product-badge [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
product-details Update blocks JS tests to React 18 (#47383) 2024-05-15 21:33:36 +12:00
product-image Add theme-level global styles to Cart and Checkout block (https://github.com/woocommerce/woocommerce-blocks/pull/8809) 2023-04-22 00:11:10 +04:00
product-low-stock-badge update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
product-metadata Simplify @woocommerce/types imports (https://github.com/woocommerce/woocommerce-blocks/pull/8019) 2022-12-23 18:59:02 +07:00
product-sale-badge update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
product-summary Fix es lint warnings (https://github.com/woocommerce/woocommerce-blocks/pull/4206) 2021-05-16 18:59:32 +01:00
return-to-cart-button Revert "[Enhancement]: Add option to show price on the place order button" (#49899) 2024-07-24 18:08:05 +02:00
shipping-calculator Prevent error on Cart Shipping Calculator when using Additional Checkout Fields API (#49685) 2024-07-23 16:38:54 +01:00
shipping-location update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
shipping-rates-control Update shipping and payment radio controls to use borders on selected items (#46150) 2024-04-10 02:54:05 -07:00
shipping-rates-control-package Block Checkout: Fix default shipping selection on toggle pickup (#49718) 2024-07-23 16:25:35 +01:00
totals [Accessibility] Focus coupon input if it has an error (#48738) 2024-08-23 19:22:28 +01:00
index.js [Experimental] Surface additional checkout fields on Order Confirmation page (#43449) 2024-01-16 13:17:28 +00:00