This commit is contained in:
Mike Jolley 2020-02-24 12:39:43 +00:00 committed by GitHub
parent 2212a74d49
commit 454bb07eda
2 changed files with 14 additions and 5 deletions

View File

@ -48,6 +48,7 @@ const CartLineItemRow = ( { lineItem } ) => {
const {
name,
summary,
permalink,
images,
variation,
quantity,
@ -116,13 +117,20 @@ const CartLineItemRow = ( { lineItem } ) => {
return (
<tr className="wc-block-cart-items__row">
<td className="wc-block-cart-item__image">
<img
{ ...imageProps }
alt={ decodeEntities( imageProps.alt ) }
/>
<a href={ permalink }>
<img
{ ...imageProps }
alt={ decodeEntities( imageProps.alt ) }
/>
</a>
</td>
<td className="wc-block-cart-item__product">
<div className="wc-block-cart-item__product-name">{ name }</div>
<a
className="wc-block-cart-item__product-name"
href={ permalink }
>
{ name }
</a>
{ lowStockBadge }
<div className="wc-block-cart-item__product-metadata">
<RawHTML>{ summary }</RawHTML>

View File

@ -139,6 +139,7 @@ table.wc-block-cart-items {
.wc-block-cart-item__product-name {
color: $core-grey-dark-600;
font-size: 16px;
display: block;
}
.wc-block-cart-item__low-stock-badge {