Skip to content

Commit e073a8d

Browse files
committed
Merge branch 'feat/filter-button' of https://github.com/devtron-labs/devtron-fe-common-lib into feat/security-scan
2 parents 0c7f938 + 77266e5 commit e073a8d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Shared/Components/FilterButton/utils.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,19 @@ export const getFilterStyle = (controlWidth?: string, menuAlignFromRight?: boole
2121
width: controlWidth || '150px',
2222
maxHeight: '36px',
2323
}),
24+
option: (base, state) => ({
25+
...base,
26+
height: '36px',
27+
padding: '8px 12px',
28+
backgroundColor: state.isFocused ? 'var(--N100)' : 'white',
29+
color: 'var(--N900)',
30+
cursor: 'pointer',
31+
overflow: 'hidden',
32+
textOverflow: 'ellipsis',
33+
whiteSpace: 'nowrap',
34+
35+
':active': {
36+
backgroundColor: 'var(--N100)',
37+
},
38+
}),
2439
})

0 commit comments

Comments
 (0)