Skip to content

Commit 821ea3d

Browse files
authored
Merge pull request Expensify#90860 from Expensify/claude-fixHighContrastPickerTextColor
Use theme.text for Android picker item color in high contrast mode
2 parents c1b60ac + 8d7a558 commit 821ea3d

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/components/Picker/BasePicker.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import useScrollContext from '@hooks/useScrollContext';
1414
import useTheme from '@hooks/useTheme';
1515
import useThemeStyles from '@hooks/useThemeStyles';
1616
import {isMobile} from '@libs/Browser';
17-
import getOperatingSystem from '@libs/getOperatingSystem';
1817
import CONST from '@src/CONST';
1918
import getAccessibilityLabelConfig from './getAccessibilityLabelConfig';
2019
import type {BasePickerProps} from './types';
@@ -145,16 +144,7 @@ function BasePicker<TPickerValue>({
145144
},
146145
}));
147146

148-
/**
149-
* We pass light text on Android, since Android Native alerts have a dark background in all themes for now.
150-
*/
151-
const itemColor = useMemo(() => {
152-
if (getOperatingSystem() === CONST.OS.ANDROID) {
153-
return theme.textLight;
154-
}
155-
156-
return theme.text;
157-
}, [theme]);
147+
const itemColor = theme.text;
158148

159149
// Windows will reuse the text color of the select for each one of the options
160150
// so we might need to color accordingly so it doesn't blend with the background.

0 commit comments

Comments
 (0)