Skip to content

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

Fix non-closable cart alert

dominik-zeglenfdbe0471ae29
diff --git a/saleor/static/js/components/cart.js b/saleor/static/js/components/cart.js
index 177546dd70..3138b295db 100644
--- a/saleor/static/js/components/cart.js
+++ b/saleor/static/js/components/cart.js
@@ -66,7 +66,7 @@ export default $(document).ready((e) => {
let $cartBadge = $('.navbar__brand__cart .badge');
let $closeMsg = $('.close-msg');
$closeMsg.on('click', (e) => {
- $removeProductSuccess.addClass('d-sm-none');
+ $removeProductSuccess.addClass('d-none');
});
$cartLine.each(function () {
let $quantityInput = $(this).find('#id_quantity');
diff --git a/templates/cart/index.html b/templates/cart/index.html
index dff4ab820a..8a05da9724 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -15,7 +15,7 @@
{% endblock breadcrumb %}
{% block content %}
-<div class="alert alert-success d-block remove-product-alert">
+<div class="alert alert-success remove-product-alert">
{% trans "Product has been removed from cart" context "Cart message" %}
<button type="button" class="close close-msg" aria-hidden="true">&times;</button>
</div>