Add permalink to line items (https://github.com/woocommerce/woocommerce-blocks/pull/1791)
This commit is contained in:
parent
2212a74d49
commit
454bb07eda
|
@ -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>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue