Skip to content

Commit

Permalink
Make the product title a link to the product page.
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-menard committed May 27, 2024
1 parent da18752 commit 682c02e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions assets/quick-add.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
padding-left: 1rem;
}

.quick-add-modal__content-info--bulk-details > a:hover {
color: rgb(var(--color-foreground));
text-decoration: underline;
}

@media screen and (min-width: 990px) {
.quick-add-modal__content-info--bulk .quick-add__product-media,
.quick-add-modal__content-info--bulk .quick-add__product-container,
Expand Down
13 changes: 11 additions & 2 deletions snippets/card-product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,17 @@
</div>
<div>
<div class="quick-add-modal__content-info--bulk-details small-hide medium-hide">
<h3 class="h2">{{ card_product.title | escape }}</h3>
{% render 'price', product: card_product, price_class: '', show_compare_at_price: true %}
<a
href="{{ card_product.url }}"
id="StandardCardNoMediaLink-{{ section_id }}-{{ card_product.id }}"
class="full-unstyled-link"
aria-labelledby="StandardCardNoMediaLink-{{ section_id }}-{{ card_product.id }} NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}"
>
<h3 class="h2">
{{ card_product.title | escape }}
</h3>
{% render 'price', product: card_product, price_class: '', show_compare_at_price: true %}
</a>
{%- if card_product.quantity_price_breaks_configured? -%}
<div class="card__information-volume-pricing-note">
<span class="caption">{{ 'products.product.volume_pricing.note' | t }}</span>
Expand Down

0 comments on commit 682c02e

Please sign in to comment.