Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix the incorrect layout of Rating and Price in Classic Template and …
Browse files Browse the repository at this point in the history
…Products block (#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
  • Loading branch information
kmanijak authored Dec 14, 2022
1 parent d5a943d commit cfb920a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion assets/js/base/components/product-rating/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { __, sprintf } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import './style.scss';

const Rating = ( {
className,
Expand Down
7 changes: 0 additions & 7 deletions assets/js/base/components/product-rating/style.scss

This file was deleted.

6 changes: 6 additions & 0 deletions assets/js/blocks/rating-filter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cfb920a

Please sign in to comment.