Move sale badge to top right of product image (https://github.com/woocommerce/woocommerce-blocks/pull/10297)
This commit is contained in:
parent
84f2e47b14
commit
37e197c149
|
@ -152,7 +152,10 @@
|
|||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
z-index: 9;
|
||||
position: relative;
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
// Element spacing.
|
||||
|
|
|
@ -513,10 +513,10 @@ abstract class AbstractProductGrid extends AbstractDynamicBlock {
|
|||
'woocommerce_blocks_product_grid_item_html',
|
||||
"<li class=\"wc-block-grid__product\">
|
||||
<a href=\"{$data->permalink}\" class=\"wc-block-grid__product-link\">
|
||||
{$data->badge}
|
||||
{$data->image}
|
||||
{$data->title}
|
||||
</a>
|
||||
{$data->badge}
|
||||
{$data->price}
|
||||
{$data->rating}
|
||||
{$data->button}
|
||||
|
|
Loading…
Reference in New Issue