From 0a5ab942bde50313a5dbd15e4512d54f436135d6 Mon Sep 17 00:00:00 2001 From: Alexandre Lara Date: Thu, 16 May 2024 15:59:06 -0300 Subject: [PATCH] [Experimental] Product Filters Redesign > Clear Button: Fix CSS Not Found error (#47481) * Fix CSS error on Product Filter Clear Button * Add changefile(s) from automation for the following project(s): woocommerce-blocks * Fix css lint error * Remove unnecessary css file from Product Filter Clear Button block --------- Co-authored-by: github-actions --- .../47481-fix-47480-product-filter-button-css-error | 4 ++++ .../src/Blocks/BlockTypes/ProductFilterClearButton.php | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 plugins/woocommerce/changelog/47481-fix-47480-product-filter-button-css-error diff --git a/plugins/woocommerce/changelog/47481-fix-47480-product-filter-button-css-error b/plugins/woocommerce/changelog/47481-fix-47480-product-filter-button-css-error new file mode 100644 index 00000000000..8a986442266 --- /dev/null +++ b/plugins/woocommerce/changelog/47481-fix-47480-product-filter-button-css-error @@ -0,0 +1,4 @@ +Significance: patch +Type: fix +Comment: Fix CSS error on the Product Filter Clear Button block + diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterClearButton.php b/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterClearButton.php index e1288926e7f..31e733b7c63 100644 --- a/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterClearButton.php +++ b/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterClearButton.php @@ -13,6 +13,15 @@ final class ProductFilterClearButton extends AbstractBlock { */ protected $block_name = 'product-filter-clear-button'; + /** + * Get the frontend style handle for this block type. + * + * @return null + */ + protected function get_block_type_style() { + return null; + } + /** * Include and render the block. *