fix(ui): only set custom colors on filters that are applied

This commit is contained in:
Łukasz Mierzwa
2019-03-26 22:03:21 -07:00
parent 7bd9cc641a
commit d4032ea816

View File

@@ -66,7 +66,7 @@ const FilterInputLabel = observer(
return (
<span
className={`${rootClasses} d-inline-flex flex-row`}
style={cs.style}
style={filter.applied ? cs.style : {}}
>
{filter.isValid ? (
filter.applied ? (
@@ -98,7 +98,7 @@ const FilterInputLabel = observer(
<button
type="button"
className="close ml-1 align-middle"
style={cs.style}
style={filter.applied ? cs.style : {}}
onClick={() => alertStore.filters.removeFilter(filter.raw)}
>
<span