Skip to content

Commit 270214e

Browse files
fix: avoid white text with white background in lang dropdown
fix #443
1 parent c538e60 commit 270214e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/webview/SearchSidebar/SearchWidgetContainer/LangSelect.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ const styles = stylex.create({
4242
marginTop: 1,
4343
marginLeft: 1,
4444
},
45+
// <option> color is required for windows
46+
langOptions: {
47+
color: 'var(--vscode-dropdown-foreground)',
48+
backgroundColor: 'var(--vscode-dropdown-background)',
49+
},
4550
})
4651

4752
function capitalize(word: string) {
@@ -70,7 +75,9 @@ export function LangSelect() {
7075
value={lang}
7176
onChange={onChange}
7277
>
73-
<option value="">Auto Detect</option>
78+
<option value="" {...stylex.props(styles.langOptions)}>
79+
Auto Detect
80+
</option>
7481
{icons.map(icon => (
7582
<option key={icon} value={icon}>
7683
{capitalize(icon)}

0 commit comments

Comments
 (0)