Merge pull request #954 from sharetribe/fix-price-filter-styles

Fix price filter styles
This commit is contained in:
Vesa Luusua 2018-11-19 12:57:23 +02:00 committed by GitHub
commit 65a081aa97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 15 deletions

View file

@ -14,6 +14,9 @@ way to update this template, but currently, we follow a pattern:
## Upcoming version 2018-11-XX
* [fix] PriceFilter styles
[#954](https://github.com/sharetribe/flex-template-web/pull/954)
## v2.3.1 2018-11-16
* [fix] Don't set currentUserHasListings if fetched listing is in draft state.

View file

@ -34,6 +34,10 @@
cursor: pointer;
}
.formWrapper {
padding-left: 20px;
}
.clearButton {
@apply --marketplaceH5FontStyles;
font-weight: var(--fontWeightMedium);

View file

@ -73,20 +73,22 @@ class PriceFilterPlainComponent extends Component {
<FormattedMessage id={'PriceFilter.clear'} />
</button>
</div>
<PriceFilterForm
id={id}
initialValues={hasInitialValues ? initialValues : { minPrice: min, maxPrice: max }}
onChange={this.handleChange}
intl={intl}
contentRef={node => {
this.filterContent = node;
}}
min={min}
max={max}
step={step}
liveEdit
isOpen={this.state.isOpen}
/>
<div className={css.formWrapper}>
<PriceFilterForm
id={id}
initialValues={hasInitialValues ? initialValues : { minPrice: min, maxPrice: max }}
onChange={this.handleChange}
intl={intl}
contentRef={node => {
this.filterContent = node;
}}
min={min}
max={max}
step={step}
liveEdit
isOpen={this.state.isOpen}
/>
</div>
</div>
);
}

View file

@ -106,7 +106,13 @@
}
.priceSeparator {
margin: 0 8px;
margin: 4px 8px 0 8px;
}
@media (--viewportMedium) {
.priceSeparator {
margin: 2px 8px 0 8px;
}
}
.sliderWrapper {