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

View File

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