Ensure card__link is visible on cards with backgrounds

This commit is contained in:
Andy Smith
2025-08-12 15:20:21 -05:00
parent 54ecd47c77
commit 8f86b25a54
+4 -4
View File
@@ -21,10 +21,6 @@
<h3 class="card__title overflow-line-clamp">
<%= card.title %>
</h3>
<%= link_to collection_card_path(card.collection, card), draggable: false, class: "card__link", title: card_title_tag(card), data: { action: "dialog#close", turbo_frame: "_top" } do %>
<span class="for-screen-reader"><%= card.title %></span>
<% end %>
</div>
<%= render "cards/display/preview/stages", card: card if card.doing? %>
@@ -36,6 +32,10 @@
<%= render "cards/display/common/background", card: card %>
</footer>
<%= link_to collection_card_path(card.collection, card), draggable: false, class: "card__link", title: card_title_tag(card), data: { action: "dialog#close", turbo_frame: "_top" } do %>
<span class="for-screen-reader"><%= card.title %></span>
<% end %>
<% if card.entropic? %>
<%= render "cards/display/preview/bubble", card: card %>
<% end %>