woocommerce/plugins/woocommerce-blocks/assets/js/blocks/featured-items
Lucio Giannotta 7531428b31 Featured Item: Fix colors from default palette not being applied (https://github.com/woocommerce/woocommerce-blocks/pull/6525)
Gutenberg uses two different attributes for text colors:

* `style.color.text`, and
* `textColor`

However, the second one is used only when a color from the default
palette is selected AND the post is saved and reloaded.

With this fix we use the human readable string from the default palette
as a CSS variable.

Please note that while Gutenberg correctly assigns the appropriate CSS
class to render the right color, the problem is that if the color is
handled by a class, it can be overridden for example by themes.

See woocommerce/woocommerce-blocks#6492
2022-06-07 10:44:45 +02:00
..
featured-category Featured Item: Fix default color being overridden by themes (https://github.com/woocommerce/woocommerce-blocks/pull/6492) 2022-05-31 17:43:03 +02:00
featured-product Featured Item: Fix default color being overridden by themes (https://github.com/woocommerce/woocommerce-blocks/pull/6492) 2022-05-31 17:43:03 +02:00
block-controls.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
call-to-action.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
constants.ts Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
constrained-resizable.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
edit.tsx Refactor Featured Category and Featured Product blocks (https://github.com/woocommerce/woocommerce-blocks/pull/6406) 2022-05-19 18:16:46 +02:00
image-editor.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
inspector-controls.tsx Featured items: ensure valid DOM nesting in inspector controls (https://github.com/woocommerce/woocommerce-blocks/pull/6501) 2022-06-01 10:02:24 +02:00
register.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
style.scss Featured Item: Fix default color being overridden by themes (https://github.com/woocommerce/woocommerce-blocks/pull/6492) 2022-05-31 17:43:03 +02:00
types.ts Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
use-background-image.ts Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
utils.ts Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
with-api-error.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
with-edit-mode.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
with-editing-image.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00
with-featured-item.tsx Featured Item: Fix colors from default palette not being applied (https://github.com/woocommerce/woocommerce-blocks/pull/6525) 2022-06-07 10:44:45 +02:00
with-update-button-attributes.tsx Migrate Featured Items Blocks to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/6439) 2022-05-30 16:38:52 +02:00