Skip to content

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

Display 'clear filters' button in red color

dominik-zeglen4114a465a0b8
diff --git a/saleor/static/dashboard/scss/components/_buttons.scss b/saleor/static/dashboard/scss/components/_buttons.scss
index ed0216b93c..f4683e3b0d 100644
--- a/saleor/static/dashboard/scss/components/_buttons.scss
+++ b/saleor/static/dashboard/scss/components/_buttons.scss
@@ -4,11 +4,20 @@
color: #fff;
}
}
+
.btn {
&:not(.btn-floating) {
box-shadow: none;
}
+ &-danger {
+ color: $error-color;
+ &:hover {
+ background: $error-color;
+ color: #fff;
+ }
+ }
}
+
.btn-fab, .btn-floating {
svg {
vertical-align: middle;
diff --git a/templates/dashboard/includes/_filters.html b/templates/dashboard/includes/_filters.html
index 4ae7528826..0d54efc117 100644
--- a/templates/dashboard/includes/_filters.html
+++ b/templates/dashboard/includes/_filters.html
@@ -31,7 +31,7 @@
<div class="card-action">
<div class="right-align">
<div class="col s12">
- <a href="?" class="clear-filters btn btn-flat">
+ <a href="?" class="clear-filters btn btn-flat btn-danger">
{% trans 'Clear filters' context 'Category page filters' %}
</a>
<button class="btn primary" type="submit">