Skip to content

Commit

Permalink
Replace pickerOptionsTextColor with theme.text
Browse files Browse the repository at this point in the history
  • Loading branch information
neonbhai committed Dec 15, 2023
1 parent af154c4 commit 8eaec2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Picker/BasePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function BasePicker<TPickerValue>(

// Windows will reuse the text color of the select for each one of the options
// so we might need to color accordingly so it doesn't blend with the background.
const pickerPlaceholder = Object.keys(placeholder).length > 0 ? {...placeholder, color: theme.pickerOptionsTextColor} : {};
const pickerPlaceholder = Object.keys(placeholder).length > 0 ? {...placeholder, color: theme.text} : {};

useEffect(() => {
if (!!value || !items || items.length !== 1 || !onInputChange) {
Expand Down Expand Up @@ -146,7 +146,7 @@ function BasePicker<TPickerValue>(
return theme.textLight;
}

return theme.pickerOptionsTextColor;
return theme.text;
}, [theme]);

const hasError = !!errorText;
Expand Down

0 comments on commit 8eaec2d

Please sign in to comment.