From 2438fcd434639b9376039b771899541b5399f108 Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Mon, 31 Jan 2022 18:03:54 +0100 Subject: [PATCH] Disable font-size for the Featured Category block woocommerce/woocommerce-blocks#5681 (https://github.com/woocommerce/woocommerce-blocks/pull/5682) Disable font-size for the Featured Category block --- .../assets/js/blocks/featured-category/index.js | 3 --- .../assets/js/blocks/featured-category/style.scss | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/woocommerce-blocks/assets/js/blocks/featured-category/index.js b/plugins/woocommerce-blocks/assets/js/blocks/featured-category/index.js index cd90f4ded68..d8f62c9ad11 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/featured-category/index.js +++ b/plugins/woocommerce-blocks/assets/js/blocks/featured-category/index.js @@ -40,9 +40,6 @@ registerBlockType( 'woocommerce/featured-category', { align: [ 'wide', 'full' ], html: false, color: true, - typography: { - fontSize: true, - }, ...( isFeaturePluginBuild() && { __experimentalBorder: { color: true, diff --git a/plugins/woocommerce-blocks/assets/js/blocks/featured-category/style.scss b/plugins/woocommerce-blocks/assets/js/blocks/featured-category/style.scss index 4974c6cef5a..45fdf201270 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/featured-category/style.scss +++ b/plugins/woocommerce-blocks/assets/js/blocks/featured-category/style.scss @@ -1,5 +1,5 @@ .wp-block-woocommerce-featured-category { - background-color: #000; + background-color: $gray-900; border-color: transparent; color: #fff; overflow: hidden; @@ -70,7 +70,6 @@ .wc-block-featured-category__price, .wc-block-featured-category__link { color: inherit; - font-size: inherit; width: 100%; padding: 0 48px 16px 48px; z-index: 1; @@ -81,7 +80,6 @@ div { color: inherit; - font-size: inherit; } &::before { @@ -91,7 +89,6 @@ .wc-block-featured-category__description { color: inherit; - font-size: inherit; p { margin: 0; }