diff --git a/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx b/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx index af1fa74e3..e472574b1 100644 --- a/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx +++ b/frontend/app/components/shared/Filters/FilterAutoComplete/FilterAutoComplete.tsx @@ -5,8 +5,25 @@ import { debounce } from 'App/utils'; import stl from './FilterAutoComplete.module.css'; import { components, DropdownIndicatorProps } from 'react-select'; import AsyncCreatableSelect from 'react-select/async-creatable'; +import colors from 'App/theme/colors'; const dropdownStyles = { + option: (provided: any, state: any) => ({ + ...provided, + whiteSpace: 'nowrap', + transition: 'all 0.3s', + backgroundColor: state.isFocused ? colors['active-blue'] : 'transparent', + color: state.isFocused ? colors.teal : 'black', + fontSize: '14px', + '&:hover': { + transition: 'all 0.2s', + backgroundColor: colors['active-blue'], + }, + '&:focus': { + transition: 'all 0.2s', + backgroundColor: colors['active-blue'], + } + }), control: (provided: any) => { const obj = { ...provided, @@ -36,10 +53,6 @@ const dropdownStyles = { padding: '0px', height: '26px', }), - option: (provided: any, state: any) => ({ - ...provided, - whiteSpace: 'nowrap', - }), menu: (provided: any, state: any) => ({ ...provided, top: 20, diff --git a/frontend/app/components/shared/Filters/FilterOperator/FilterOperator.tsx b/frontend/app/components/shared/Filters/FilterOperator/FilterOperator.tsx index c10dd9396..1446891e0 100644 --- a/frontend/app/components/shared/Filters/FilterOperator/FilterOperator.tsx +++ b/frontend/app/components/shared/Filters/FilterOperator/FilterOperator.tsx @@ -33,10 +33,10 @@ const dropdownStyles = { padding: '0px', height: '26px', }), - option: (provided: any, state: any) => ({ - ...provided, - whiteSpace: 'nowrap', - }), + // option: (provided: any, state: any) => ({ + // ...provided, + // whiteSpace: 'nowrap', + // }), menu: (provided: any, state: any) => ({ ...provided, top: 20,