Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix card expiry date widget
dominik-zeglenb6e1527f5829
diff --git a/saleor/static/scss/layouts/_checkout.scss b/saleor/static/scss/layouts/_checkout.scssindex 9ae6ade257..c83d647892 100644--- a/saleor/static/scss/layouts/_checkout.scss+++ b/saleor/static/scss/layouts/_checkout.scss@@ -95,7 +95,7 @@}@include media-breakpoint-down(sm) {margin-top: $global-margin * 3;- }+ }}&__thankyoupage {text-align: center;@@ -142,4 +142,10 @@}}}+ &__payments {+ &-card-expiry-slash {+ font-size: 1.5rem;+ font-weight: 100;+ }+ }}diff --git a/templates/payments/credit_card_expiry_widget.html b/templates/payments/credit_card_expiry_widget.htmlindex c391003d00..107b979637 100644--- a/templates/payments/credit_card_expiry_widget.html+++ b/templates/payments/credit_card_expiry_widget.html@@ -1,7 +1,9 @@-<span style="white-space: nowrap">+<div class="row">{% with widget.subwidgets.0 as month %}{% with widget.subwidgets.1 as year %}- {% include month.template_name with widget=month %} / {% include year.template_name with widget=year %}+ <div class="col-6">{% include month.template_name with widget=month %}</div>+ <span class="text-center align-bottom position-absolute w-100 checkout__payments-card-expiry-slash">/</span>+ <div class="col-6">{% include year.template_name with widget=year %}</div>{% endwith %}{% endwith %}-</span>+</div>