Skip to content

Commit 81f2f0c

Browse files
fixed filters design
1 parent fd1213c commit 81f2f0c

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

src/ui/components/Filters/filter.module.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,20 @@
2424
}
2525

2626
.tile {
27+
align-items: center;
28+
font-size: 12px;
29+
font-weight: 400;
30+
font-family: Rubik;
31+
color: $primaryColor;
2732
height: 28px;
28-
background-color: #EDE4FF;
33+
background-color:#FBFBFB;
2934
margin-top: -5px !important;
3035
margin-left: 7px !important;
3136
border-radius: 4px;
3237
padding: 5px 11px !important
3338
}
3439

40+
3541
.removeIcon {
3642
margin-top: 23px !important;
3743
padding-top: 4px !important;

src/ui/components/Filters/index.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ const FilterComponent = ({
534534
border: '1px solid grey',
535535
height: '40px',
536536
fontSize: '12px',
537-
display: 'flex'
537+
display: 'flex',
538538
// ...base,
539539
}),
540540
};
@@ -650,25 +650,23 @@ const FilterComponent = ({
650650
return (
651651
<FlexBox.Column fullWidth>
652652
<div className={styles.inputRow}>
653-
654653
{!window.location.href?.includes('components') && (
655-
<Box marginRight="md" marginTop='md'>
656-
<SearchInputField
657-
placeholder={'Search'}
658-
value={searchText ? filters[0]?.filterValue : ''}
659-
disabled={applyFilter}
660-
onChange={(value: string) => {
661-
setSearchText(value ? true : false);
662-
handleValueFieldChangeOnSearch(value);
663-
}}
654+
<Box marginRight="md" marginTop="md">
655+
<SearchInputField
656+
placeholder={'Search'}
657+
value={searchText ? filters[0]?.filterValue : ''}
658+
disabled={applyFilter}
659+
onChange={(value: string) => {
660+
setSearchText(value ? true : false);
661+
handleValueFieldChangeOnSearch(value);
662+
}}
664663
/>
665664
</Box>
666665
)}
667666

668-
669667
<FlexBox
670668
fullWidth
671-
className="border border-primary rounded rounded-4 p-2 align-item-center"
669+
className="border rounded rounded-4 p-2 align-item-center"
672670
>
673671
<Box
674672
onClick={() => {
@@ -909,7 +907,7 @@ const FilterComponent = ({
909907
}}
910908
isClearable={true}
911909
// value={'role'}
912-
className={styles.searchableInput}
910+
className={styles.searchableInput}
913911
// classNamePrefix="select"
914912
// isClearable={false}
915913
/>

0 commit comments

Comments
 (0)