Skip to content

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

Fix header search button

Krzysztof Białogłowicz1776b46050ea
diff --git a/saleor/static/images/search-icon-black.svg b/saleor/static/images/search-icon-black.svg
deleted file mode 100755
index 6eb08bceee..0000000000
--- a/saleor/static/images/search-icon-black.svg
+++ /dev/null
@@ -1,12 +0,0 @@
-<svg width="42" height="42" viewBox="0 0 42 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">
-<title>&#239;&#128;&#130;</title>
-<desc>Created using Figma</desc>
-<g id="Canvas" transform="translate(1882 1346)" figma:type="canvas">
-<g id="&#239;&#128;&#130;" style="mix-blend-mode:normal;" figma:type="text">
-<use xlink:href="#path0_fill" transform="translate(-1882 -1349)" fill="#333333" style="mix-blend-mode:normal;"/>
-</g>
-</g>
-<defs>
-<path id="path0_fill" d="M 25.6138 28.8532C 27.8237 26.6434 28.9286 23.99 28.9286 20.8929C 28.9286 17.7958 27.8237 15.1507 25.6138 12.9576C 23.4208 10.7478 20.7757 9.64286 17.6786 9.64286C 14.5815 9.64286 11.928 10.7478 9.71819 12.9576C 7.52511 15.1507 6.42857 17.7958 6.42857 20.8929C 6.42857 23.99 7.52511 26.6434 9.71819 28.8532C 11.928 31.0463 14.5815 32.1429 17.6786 32.1429C 20.7757 32.1429 23.4208 31.0463 25.6138 28.8532ZM 41.7857 41.7857C 41.7857 42.6563 41.4676 43.4096 40.8315 44.0458C 40.1953 44.6819 39.442 45 38.5714 45C 37.6674 45 36.9141 44.6819 36.3114 44.0458L 27.6981 35.4576C 24.7014 37.5335 21.3616 38.5714 17.6786 38.5714C 15.2846 38.5714 12.9911 38.1111 10.798 37.1903C 8.62165 36.2528 6.73828 34.9972 5.14788 33.4236C 3.57422 31.8331 2.31864 29.9498 1.38114 27.7734C 0.460379 25.5804 0 23.2868 0 20.8929C 0 18.4989 0.460379 16.2137 1.38114 14.0374C 2.31864 11.8443 3.57422 9.96094 5.14788 8.38728C 6.73828 6.79688 8.62165 5.5413 10.798 4.62054C 12.9911 3.68304 15.2846 3.21429 17.6786 3.21429C 20.0725 3.21429 22.3577 3.68304 24.534 4.62054C 26.7271 5.5413 28.6105 6.79688 30.1842 8.38728C 31.7746 9.96094 33.0301 11.8443 33.9509 14.0374C 34.8884 16.2137 35.3571 18.4989 35.3571 20.8929C 35.3571 24.5759 34.3192 27.9157 32.2433 30.9124L 40.8566 39.5257C 41.476 40.1451 41.7857 40.8984 41.7857 41.7857Z"/>
-</defs>
-</svg>
diff --git a/saleor/static/images/search-icon.svg b/saleor/static/images/search-icon.svg
index f999cdf2a8..6eb08bceee 100755
--- a/saleor/static/images/search-icon.svg
+++ b/saleor/static/images/search-icon.svg
@@ -3,7 +3,7 @@
<desc>Created using Figma</desc>
<g id="Canvas" transform="translate(1882 1346)" figma:type="canvas">
<g id="&#239;&#128;&#130;" style="mix-blend-mode:normal;" figma:type="text">
-<use xlink:href="#path0_fill" transform="translate(-1882 -1349)" fill="#FFFFFF" style="mix-blend-mode:normal;"/>
+<use xlink:href="#path0_fill" transform="translate(-1882 -1349)" fill="#333333" style="mix-blend-mode:normal;"/>
</g>
</g>
<defs>
diff --git a/saleor/static/scss/storefront/components/_header.scss b/saleor/static/scss/storefront/components/_header.scss
index 8d1af2fe8f..95089adbfe 100644
--- a/saleor/static/scss/storefront/components/_header.scss
+++ b/saleor/static/scss/storefront/components/_header.scss
@@ -137,17 +137,15 @@
}
}
.btn {
- width: 2rem;
- height: 2rem;
+ width: 2.3rem;
+ height: 2.3rem;
position: absolute;
- right: 0.2rem;
- border: 0;
- background: $blue;
+ right: 0rem;
cursor: pointer;
+ border-left: solid 1px $gray;
+ border-radius: 0;
+ outline: 0;
@include transition(background, 0.3s)
- &:hover {
- background: darken($blue, 10%);
- }
img {
max-height: 1.5rem;
padding: $global-padding / 7;
diff --git a/templates/base.html b/templates/base.html
index 151548e760..72f6f56b27 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -71,7 +71,7 @@
</div>
<div class="col-2 col-md-4 navbar__search static">
{% if SEARCH_IS_ENABLED %}
- <img class="hidden-md-up mobile-search-icon float-right" src="{% static "images/search-icon-black.svg" %}">
+ <img class="hidden-md-up mobile-search-icon float-right" src="{% static "images/search-icon.svg" %}">
{% endif %}
{% if SEARCH_IS_ENABLED %}
<form class="form-inline navbar__brand__search" action="{% url "search:search" %}">