Disable font-size for the Featured Category block
This commit is contained in:
Luigi Teschio 2022-01-31 18:03:54 +01:00 committed by GitHub
parent 6ed7034223
commit 2438fcd434
2 changed files with 1 additions and 7 deletions

View File

@ -40,9 +40,6 @@ registerBlockType( 'woocommerce/featured-category', {
align: [ 'wide', 'full' ], align: [ 'wide', 'full' ],
html: false, html: false,
color: true, color: true,
typography: {
fontSize: true,
},
...( isFeaturePluginBuild() && { ...( isFeaturePluginBuild() && {
__experimentalBorder: { __experimentalBorder: {
color: true, color: true,

View File

@ -1,5 +1,5 @@
.wp-block-woocommerce-featured-category { .wp-block-woocommerce-featured-category {
background-color: #000; background-color: $gray-900;
border-color: transparent; border-color: transparent;
color: #fff; color: #fff;
overflow: hidden; overflow: hidden;
@ -70,7 +70,6 @@
.wc-block-featured-category__price, .wc-block-featured-category__price,
.wc-block-featured-category__link { .wc-block-featured-category__link {
color: inherit; color: inherit;
font-size: inherit;
width: 100%; width: 100%;
padding: 0 48px 16px 48px; padding: 0 48px 16px 48px;
z-index: 1; z-index: 1;
@ -81,7 +80,6 @@
div { div {
color: inherit; color: inherit;
font-size: inherit;
} }
&::before { &::before {
@ -91,7 +89,6 @@
.wc-block-featured-category__description { .wc-block-featured-category__description {
color: inherit; color: inherit;
font-size: inherit;
p { p {
margin: 0; margin: 0;
} }