Skip to content

Commit

Permalink
Fix empty collection links (Shopify#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Etchen authored and pjhardie committed Jun 13, 2022
1 parent b527a1b commit af80b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/card-collection.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</div>
</div>
{%- endif -%}
<div class="card__content">
<div class="card__content">
<div class="card__information">
<h3 class="card__heading">
<a{% if card_collection == blank %} role="link" aria-disabled="true"{% else %} href="{{ card_collection.url }}"{% endif %} class="full-unstyled-link">
Expand All @@ -83,7 +83,7 @@
<div class="card__content">
<div class="card__information">
<h3 class="card__heading">
<a href="{{ card_collection.url }}" class="full-unstyled-link">
<a{% if card_collection == blank %} role="link" aria-disabled="true"{% else %} href="{{ card_collection.url }}"{% endif %} class="full-unstyled-link">
{%- if card_collection.title != blank -%}
{{- card_collection.title | escape -}}
{%- else -%}
Expand Down

0 comments on commit af80b6a

Please sign in to comment.