1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Filter buttons bugs fix (#614)

* buttons selection and deselection fix

* style fixes

* hide button fix

Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
This commit is contained in:
claudiaHash 2021-05-20 11:50:52 +03:00 committed by GitHub
parent 56169b9887
commit f7cf804ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,10 @@ button.filter,
margin-bottom: calc(var(--spacer) / 6); margin-bottom: calc(var(--spacer) / 6);
} }
.showClear:hover{
display: inline-flex;
color: var(--color-primary);
}
.showClear { .showClear {
display: inline-flex; display: inline-flex;
text-transform: capitalize; text-transform: capitalize;

View File

@ -42,6 +42,9 @@ export default function FilterPrice({
setServiceSelections([otherValue]) setServiceSelections([otherValue])
} else { } else {
await applyServiceFilter(undefined) await applyServiceFilter(undefined)
if (serviceSelections.includes(value)) {
serviceSelections.pop()
}
} }
} else { } else {
if (serviceSelections.length) { if (serviceSelections.length) {