Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix close icon in search form on mobile
weronka2fbe225514f2
diff --git a/saleor/static/scss/storefront/components/_header.scss b/saleor/static/scss/storefront/components/_header.scssindex ea6627b024..4d88d7f75c 100644--- a/saleor/static/scss/storefront/components/_header.scss+++ b/saleor/static/scss/storefront/components/_header.scss@@ -134,10 +134,11 @@position: relative;.mobile-close-search {position: absolute;- top: 1.9rem;- left: 1rem;- max-width: 22px;cursor: pointer;+ padding: $global-padding * 1.9 $global-padding;+ img {+ width: 22px;+ }}.search-input {width: 100%;diff --git a/templates/base.html b/templates/base.htmlindex 1122d9de1d..b88abefead 100644--- a/templates/base.html+++ b/templates/base.html@@ -78,7 +78,9 @@{% endif %}{% if SEARCH_IS_ENABLED %}<form class="form-inline navbar__brand__search" action="{% url "search:search" %}">- <img class="mobile-close-search hidden-md-up" src="{% static "images/close-icon.svg" %}">+ <div class="mobile-close-search hidden-md-up">+ <img src="{% static "images/close-icon.svg" %}">+ </div><input class="form-control search-input" type="text" name="q" value="{% if query %}{{ query }}{% endif %}" placeholder="{% trans "Search for product" %}"><button class="btn btn-link" type="submit"><img src="{% static "images/search-icon.svg" %}">