Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Refactor code

dominik-zeglene9fa49d26a13
diff --git a/saleor/static/scss/layouts/_checkout.scss b/saleor/static/scss/layouts/_checkout.scss
index dcfb71a1d0..5fdeb90a2d 100644
--- a/saleor/static/scss/layouts/_checkout.scss
+++ b/saleor/static/scss/layouts/_checkout.scss
@@ -87,10 +87,10 @@
border-top: 1px solid $gray;
padding-top: $global-padding;
.input-btn {
- .btn {
- position: relative;
+ .btn-voucher-remove {
+ position: relative;
+ }
}
- }
}
&__tittle {
margin-bottom: $global-margin * 2;
diff --git a/templates/checkout/snippets/voucher-form.html b/templates/checkout/snippets/voucher-form.html
index 53a68462f4..2e5fbb8c75 100644
--- a/templates/checkout/snippets/voucher-form.html
+++ b/templates/checkout/snippets/voucher-form.html
@@ -11,7 +11,7 @@
{% csrf_token %}
<span>{{ discount.name }}</span>
<button type="submit"
- class="btn btn-link"
+ class="btn btn-link btn-voucher-remove"
aria-label="{% trans "Remove" context "Checkout voucher form action" %}">
{% trans "(Remove)" context "Checkout voucher form action" %}
</button>