Fix the incorrect layout of Rating and Price in Classic Template and Products block (https://github.com/woocommerce/woocommerce-blocks/pull/7932)

* Fix the incorrect layout of Rating and Price in Classic Template

There were styles required in Rating Filter that were added globally and influenced the layout of Rating in Products block as well as Classic template. The styles were moved to the Rating Filter block
This commit is contained in:
kmanijak 2022-12-14 08:17:19 +01:00 committed by GitHub
parent 6aa8a72f8e
commit 05b1b0f32f
3 changed files with 6 additions and 8 deletions

View File

@ -7,7 +7,6 @@ import { __, sprintf } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import './style.scss';
const Rating = ( {
className,

View File

@ -1,7 +0,0 @@
.wc-block-components-product-rating {
&__stars {
display: inline-block;
line-height: 1;
height: 1em;
}
}

View File

@ -29,6 +29,12 @@
}
}
.wc-block-components-product-rating__stars {
display: inline-block;
line-height: 1;
height: 1em;
}
.wc-blocks-components-form-token-field-wrapper {
flex-grow: 1;
max-width: unset;