woocommerce/plugins/woocommerce-blocks/assets/js/base/components
Saad Tarhi d53551d4a7 Fix/cart button focus hover states (https://github.com/woocommerce/woocommerce-blocks/pull/5712)
* Add hover & focus styles for component buttons

We are using an old version of the "@wordpress/component" package,
that's why we are not getting the latest style fixes from Gutenberg.

The reason to not using the latest version is that we had some issues
with the bundle size.

The current solution is to set our own focus & hover styles

* Replace raw value with Sass variable

* Fix hover style for the mini cart block

We don't have the outlined button yet. This styles is unique for the
mini cart button.

To refactor this code, maybe we should create a reusable outlined button

* Add variant to the Woo Block Button component

To refactor our code, adding a "variant" prop looks logical since we are
have already "contained" & "outlined" buttons. So, for future need for an
outlined button, no need to manually apply the same style again.

The "contained" variant is set by default for legacy reasons. Our Button
component was first built as a contained one.

* Fix height difference: oulined & contained buttons

The outlined buttons have more height because of the added border value.

To fix it we can replace the border with the inner shadow.

Co-authored-by: Saad Tarhi <saad.tarhi@automattic.com>
2022-02-09 18:32:05 +01:00
..
block-error-boundary Prevent third party blocks from breaking the entire checkout/cart block (https://github.com/woocommerce/woocommerce-blocks/pull/5297) 2022-01-25 12:01:19 +00:00
button Fix/cart button focus hover states (https://github.com/woocommerce/woocommerce-blocks/pull/5712) 2022-02-09 18:32:05 +01:00
cart-checkout Remove custom `Icon` component in favour of `@wordpress/icons` where possible (https://github.com/woocommerce/woocommerce-blocks/pull/5599) 2022-02-01 16:54:38 +00:00
checkbox-list More ts conversions (https://github.com/woocommerce/woocommerce-blocks/pull/5263) 2021-12-03 17:23:25 +00:00
chip Remove custom `Icon` component in favour of `@wordpress/icons` where possible (https://github.com/woocommerce/woocommerce-blocks/pull/5599) 2022-02-01 16:54:38 +00:00
combobox Storybook migration of `CountryInput` component (https://github.com/woocommerce/woocommerce-blocks/pull/5312) 2021-12-07 16:07:21 +01:00
country-input Storybook migration of `CountryInput` component (https://github.com/woocommerce/woocommerce-blocks/pull/5312) 2021-12-07 16:07:21 +01:00
drawer Mini Cart block: add footer (subtotal, cart & checkout buttons and payment method icons) (https://github.com/woocommerce/woocommerce-blocks/pull/4982) 2021-10-28 22:48:39 +07:00
dropdown-selector Attribute Filter block: Enable global style (https://github.com/woocommerce/woocommerce-blocks/pull/5557) 2022-02-02 18:41:39 +01:00
filter-element-label Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
filter-submit-button Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
form Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
formatted-monetary-amount Filter Products By Price block: don't allow to insert negative values on inputs (https://github.com/woocommerce/woocommerce-blocks/pull/5123) 2022-01-06 15:30:34 +01:00
label Export `Button` and `Label` from `wc-blocks-checkout` package (https://github.com/woocommerce/woocommerce-blocks/pull/4406) 2021-07-02 10:24:07 +01:00
load-more-button Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
loading-mask Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
noninteractive Fix: Mini Cart block button should be disabled in the editor (https://github.com/woocommerce/woocommerce-blocks/pull/5308) 2021-12-07 21:29:56 +07:00
pagination Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
price-slider Filter Products By Price block: don't allow to insert negative values on inputs (https://github.com/woocommerce/woocommerce-blocks/pull/5123) 2022-01-06 15:30:34 +01:00
product-list Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
product-name Storybook and TS migration of some cart checkout components (https://github.com/woocommerce/woocommerce-blocks/pull/5324) 2021-12-15 17:30:17 +01:00
product-price Migrate storybook entries of ProductPrice component (https://github.com/woocommerce/woocommerce-blocks/pull/5371) 2021-12-15 19:07:49 +01:00
quantity-selector Add minimum quantity, maximum quantity, and step (multiple_of) to the Cart Block and Store API (https://github.com/woocommerce/woocommerce-blocks/pull/5406) 2022-01-11 11:09:59 +00:00
radio-control Revise checkout payment statuses to avoid data loss on error (https://github.com/woocommerce/woocommerce-blocks/pull/5350) 2021-12-10 16:26:16 +01:00
radio-control-accordion Update Dependencies to Latest Versions supporting React 16x (https://github.com/woocommerce/woocommerce-blocks/pull/4532) 2021-08-05 10:26:00 +01:00
read-more Fix ReadMore component maxLines prop reactivity (https://github.com/woocommerce/woocommerce-blocks/pull/5673) 2022-01-31 13:56:19 +01:00
reviews Fix inconsistent HTML of rating section (https://github.com/woocommerce/woocommerce-blocks/pull/5552) 2022-01-14 18:32:28 +07:00
sidebar-layout Add custom className support to Checkout Inner Blocks (https://github.com/woocommerce/woocommerce-blocks/pull/4978) 2021-10-20 17:18:13 +01:00
sort-select Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00
spinner Loading animation (https://github.com/woocommerce/woocommerce-blocks/pull/5362) 2021-12-13 13:57:59 +00:00
state-input Validate state on options change (https://github.com/woocommerce/woocommerce-blocks/pull/4761) 2021-09-21 11:48:39 +01:00
summary Summary Product block: Add support for global style (https://github.com/woocommerce/woocommerce-blocks/pull/5524) 2022-01-12 16:31:25 +01:00
tabs Update Dependencies to Latest Versions supporting React 16x (https://github.com/woocommerce/woocommerce-blocks/pull/4532) 2021-08-05 10:26:00 +01:00
text-input Remove validateOnMount in favour of validation on state change (https://github.com/woocommerce/woocommerce-blocks/pull/5381) 2021-12-20 12:16:41 +00:00
textarea Fix checkbox and textarea styles in Twenty Twenty One when it has dark controls (https://github.com/woocommerce/woocommerce-blocks/pull/3450) 2020-11-23 15:20:31 -05:00
title Add word-break: break-word to components title (https://github.com/woocommerce/woocommerce-blocks/pull/4049) 2021-04-09 16:01:34 +01:00
README.md clarify intentions / purpose of different component folders in docs (https://github.com/woocommerce/woocommerce-blocks/pull/3025) 2020-08-27 08:15:16 +12:00
tsconfig.json Ts blocks (https://github.com/woocommerce/woocommerce-blocks/pull/5668) 2022-02-07 09:34:30 +00:00

README.md

WooCommerce Blocks - General Purpose Components

These are shared components used in WooCommerce blocks, and may be used in the store front end (shopper experience) as well as the editor or admin dashboard.

See Components & Storybook doc for more information.