Skip to content

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

Update clear filters button style

dominik-zeglenf3e30075e2c8
diff --git a/saleor/static/scss/components/_filters.scss b/saleor/static/scss/components/_filters.scss
index 166607f3b1..0e34eebc7e 100644
--- a/saleor/static/scss/components/_filters.scss
+++ b/saleor/static/scss/components/_filters.scss
@@ -255,11 +255,8 @@
}
.clear-filters {
- color: $body-color;
- font-weight: 400;
- cursor: pointer;
- font-size: 0.8rem;
- line-height: 1.3rem;
+ display: inline-block;
+ margin: $global-margin * 0.5 0 $global-margin;
}
.load-more {
diff --git a/templates/product/_filters.html b/templates/product/_filters.html
index e1ff5f059f..b1e1cbf2cc 100644
--- a/templates/product/_filters.html
+++ b/templates/product/_filters.html
@@ -2,13 +2,6 @@
{% load static %}
<div class="filters-menu__body d-none d-md-block">
- <h2>
- {% if filter_set.is_bound_unsorted %}
- <a href="./">
- <span class="clear-filters float-right">{% trans 'Clear filters' context 'Product list page filters' %}</span>
- </a>
- {% endif %}
- </h2>
<div class="product-filters">
<div class="product-filters__attributes" data-icon-up="{% static "images/chevron-up.svg" %}" data-icon-down="{% static "images/chevron-down.svg" %}">
<form method="get">
@@ -58,6 +51,11 @@
</div>
{% endif %}
{% endfor %}
+ {% if filter_set.is_bound_unsorted %}
+ <a class="clear-filters text-uppercase" href="./">
+ {% trans 'Clear filters' context 'Product list page filters' %}
+ </a>
+ {% endif %}
<button class="btn btn-primary" type="submit">{% trans 'Update results' context 'Apply filters button' %}</button>
</form>
</div>