Skip to content

Commit

Permalink
Merge pull request #809 from AlexRodwell/faction-icon-card-page
Browse files Browse the repository at this point in the history
Fix missing faction colour on card page icon
  • Loading branch information
AlexRodwell authored Jan 25, 2024
2 parents 560c740 + 430d9db commit 0265738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Resources/views/Search/display-zoom.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
{% if card.type_code != "identity" and card.faction_cost_dots|length > 0 %}
<div class="card-influence">
Influence:
<svg class="typeIcon" aria-label="{{ card.faction_name }}"><use xlink:href="/images/icons.svg#faction-{{ card.faction_code }}"></use></svg>
<svg class="typeIcon" aria-label="{{ card.faction_name }}" data-icon-color="{{ card.faction_code }}"><use xlink:href="/images/icons.svg#faction-{{ card.faction_code }}"></use></svg>
{# Singular line, as it creates whitespace otherwise #}
<span aria-label="{{ card.factioncost }} Influence" style="font-size: 0px;">{{ card.factioncost }}</span><span aria-hidden="true" style="user-select: none;">{{ card.faction_cost_dots|raw }}</span>
</div>
Expand Down

0 comments on commit 0265738

Please sign in to comment.