fix Bootstrap 5 compatibility
This commit is contained in:
parent
78b99b4db7
commit
81ba40afed
2 changed files with 26 additions and 8 deletions
|
|
@ -1,9 +1,19 @@
|
|||
{% sw_extends '@Storefront/storefront/component/product/card/action.html.twig' %}
|
||||
|
||||
{% block component_product_box_action_detail %}
|
||||
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
|
||||
class="btn btn-block btn-buy"
|
||||
title="{{ "listing.boxProductDetails"|trans|striptags }}">
|
||||
{{ "listing.boxProductDetails"|trans|sw_sanitize }}
|
||||
</a>
|
||||
{% if feature('v6.5.0.0') %}
|
||||
<div class="d-grid">
|
||||
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
|
||||
class="btn btn-buy"
|
||||
title="{{ "listing.boxProductDetails"|trans|striptags }}">
|
||||
{{ "listing.boxProductDetails"|trans|sw_sanitize }}
|
||||
</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
|
||||
class="btn btn-block btn-buy"
|
||||
title="{{ "listing.boxProductDetails"|trans|striptags }}">
|
||||
{{ "listing.boxProductDetails"|trans|sw_sanitize }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue