make entire product card image area clickable
All checks were successful
deploy / deploy (push) Successful in 1m18s

The stretched-link::after overlay (z-index: 0) was blocked by
product-card-image-wrap (z-index: 1), so only the title text was
actually clickable. Wrapping the image area in a <.link> component
directly fixes this — taps/clicks bubble up to the link naturally,
and touch-scroll on the image carousel still works on mobile.

Also corrects the mode check: ThemeHook sets mode: :shop on shop pages,
not :live, so the condition is now mode != :preview (consistent with
how the title link already worked).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-24 15:22:43 +00:00
parent e7656cf0b3
commit 12d87998ee
2 changed files with 26 additions and 2 deletions

View File

@@ -50,6 +50,7 @@
}
.product-card-image-wrap {
display: block;
z-index: 1;
overflow: hidden;
position: relative;