Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move filters clickable area from icon to header
Krzysztof Białogłowicz9cbcd7d137fa
diff --git a/saleor/static/js/components/categoryPage/PriceFilter.js b/saleor/static/js/components/categoryPage/PriceFilter.jsindex ec6c6727f9..808e07668e 100644--- a/saleor/static/js/components/categoryPage/PriceFilter.js+++ b/saleor/static/js/components/categoryPage/PriceFilter.js@@ -38,9 +38,9 @@ export default class PriceFilter extends Component {const { visibility } = this.state;return (<div className="price-range">- <h3>+ <h3 onClick={this.changeVisibility}>Price range- <i className={visibility ? ('fa fa-chevron-up pull-right') : ('fa fa-chevron-down pull-right')} aria-hidden="true" onClick={this.changeVisibility}></i>+ <i className={visibility ? ('fa fa-chevron-up pull-right') : ('fa fa-chevron-down pull-right')} aria-hidden="true"></i></h3>{visibility ? (<div>diff --git a/saleor/static/js/components/categoryPage/ProductFilters.js b/saleor/static/js/components/categoryPage/ProductFilters.jsindex 1df858b45e..b6a198bd1a 100644--- a/saleor/static/js/components/categoryPage/ProductFilters.js+++ b/saleor/static/js/components/categoryPage/ProductFilters.js@@ -50,9 +50,9 @@ class ProductFilters extends Component {{attributes && (attributes.map((attribute) => {return (<div key={attribute.id}>- <h3 className={attribute.name}>+ <h3 className={attribute.name} onClick={() => this.changeVisibility(attribute.name)}>{attribute.display}- <i className={visibility[attribute.name] ? ('fa fa-chevron-up pull-right') : ('fa fa-chevron-down pull-right')} aria-hidden="true" onClick={() => this.changeVisibility(attribute.name)}></i>+ <i className={visibility[attribute.name] ? ('fa fa-chevron-up pull-right') : ('fa fa-chevron-down pull-right')} aria-hidden="true" ></i></h3><ul id={attribute.name}>{attribute.values.map((value) => {diff --git a/saleor/static/scss/storefront/components/_category-page.scss b/saleor/static/scss/storefront/components/_category-page.scssindex 5e9dd3c68f..f74a06bd05 100644--- a/saleor/static/scss/storefront/components/_category-page.scss+++ b/saleor/static/scss/storefront/components/_category-page.scss@@ -108,9 +108,7 @@padding: $global-padding;font-size: 1rem;font-weight: bold;- i {- cursor: pointer;- }+ cursor: pointer;}ul {padding: $global-padding/2 0;