diff --git a/frontend-react/src/components/elements/Select.tsx b/frontend-react/src/components/elements/Select.tsx index d50821144..f909221de 100644 --- a/frontend-react/src/components/elements/Select.tsx +++ b/frontend-react/src/components/elements/Select.tsx @@ -89,6 +89,12 @@ const Select: React.FC = ({ return value } + const getOptionColor = (focused: boolean) => { + if (focused) return "black" + + return colorMode === "light" ? "black" : "white" + } + return ( {label && } @@ -150,6 +156,13 @@ const Select: React.FC = ({ background: themeColorHexLighter, color: "black", }), + option: (styles, { data, isDisabled, isFocused, isSelected }) => { + return { + ...styles, + backgroundColor: isFocused ? themeColorHexLighter : undefined, + color: getOptionColor(isFocused), + } + }, }} />