Skip to content

Commit

Permalink
NTR: fix button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Apr 26, 2024
1 parent 488434b commit 0a521a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}

{% block buy_widget_buy_button %}

{% if mollie_subscriptions_enabled and product.customFields.mollie_payments_product_subscription_enabled %}
<button class="btn btn-primary btn-block btn-buy" title="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}" aria-label="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}">
{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}
</button>
<div class="d-grid">
<button class="btn btn-primary btn-block btn-buy" title="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}" aria-label="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}">
{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}
</button>
</div>
{% else %}
{{ parent() }}
{% endif %}



{% endblock %}

{% block buy_widget_buy_button_container %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
{% block page_product_detail_product_buy_button %}

{% if mollie_subscriptions_enabled and product.customFields.mollie_payments_product_subscription_enabled %}
<button class="btn btn-block btn-buy" title="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}">
{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}
</button>
<div class="d-grid">
<button class="btn btn-block btn-buy" title="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}">
{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}
</button>
</div>
{% else %}
{{ parent() }}
{% endif %}
Expand Down

0 comments on commit 0a521a0

Please sign in to comment.