Skip to content

Commit 6eb9aed

Browse files
Merge pull request #273 from CSSLab/codex/fix-edge-maia-opponent-options
fix: make maia opponent dropdown readable in Edge
2 parents 9df1ba2 + 9d84140 commit 6eb9aed

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/components/Common/GameInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const GameInfo: React.FC<Props> = ({
8282
<select
8383
ref={maiaSelectRef}
8484
value={currentMaiaModel}
85-
className="cursor-pointer appearance-none bg-transparent leading-none focus:outline-none"
85+
className="maia-native-select cursor-pointer appearance-none bg-transparent leading-none focus:outline-none"
8686
onChange={(e) => setCurrentMaiaModel(e.target.value)}
8787
>
8888
{MAIA_MODELS?.map((model) => (

src/components/Common/PlaySetupModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export const PlaySetupModal: React.FC<Props> = (props: Props) => {
297297
<select
298298
id="partner-select"
299299
value={maiaPartnerVersion}
300-
className="w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
300+
className="maia-native-select w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
301301
onChange={(e) => setMaiaPartnerVersion(e.target.value)}
302302
>
303303
{maiaOptions.map((maia) => (
@@ -327,7 +327,7 @@ export const PlaySetupModal: React.FC<Props> = (props: Props) => {
327327
<select
328328
id="opponent-select"
329329
value={maiaVersion}
330-
className="w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
330+
className="maia-native-select w-full min-w-0 rounded border border-glass-border bg-glass px-3 py-2 text-sm text-white/90 focus:outline-none"
331331
onChange={(e) => setMaiaVersion(e.target.value)}
332332
>
333333
{maiaOptions.map((maia) => (

src/components/Openings/OpeningSelectionModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ const DrillStudioPanel: React.FC<{
11211121
setSelectedMaiaVersion(version)
11221122
}
11231123
}}
1124-
className="w-full rounded-md border border-white/[0.08] bg-white/[0.06] px-2.5 py-[8px] text-[14px] text-white/90 focus:outline-none"
1124+
className="maia-native-select w-full rounded-md border border-white/[0.08] bg-white/[0.06] px-2.5 py-[8px] text-[14px] text-white/90 focus:outline-none"
11251125
>
11261126
{MAIA3_OPPONENT_RATINGS.map((version) => (
11271127
<option key={version.id} value={version.id}>
@@ -1402,7 +1402,7 @@ const SelectedPanel: React.FC<{
14021402
setSelectedMaiaVersion(version)
14031403
}
14041404
}}
1405-
className="w-full rounded border border-glass-border bg-white/5 p-2 text-xs text-white/90 backdrop-blur-sm focus:outline-none focus:ring-1 focus:ring-white/20 md:text-sm"
1405+
className="maia-native-select w-full rounded border border-glass-border bg-white/5 p-2 text-xs text-white/90 backdrop-blur-sm focus:outline-none focus:ring-1 focus:ring-white/20 md:text-sm"
14061406
>
14071407
{MAIA3_OPPONENT_RATINGS.map((version) => (
14081408
<option key={version.id} value={version.id}>

src/styles/tailwind.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ svg {
185185
background-color: rgb(var(--color-human-accent4));
186186
}
187187

188+
.maia-native-select option,
189+
.maia-native-select optgroup {
190+
background-color: rgb(255 255 255);
191+
color: rgb(17 24 39);
192+
-webkit-text-fill-color: rgb(17 24 39);
193+
}
194+
188195
.spinner {
189196
border: 4px solid rgb(var(--color-background4));
190197
border-left-color: rgb(var(--color-human-accent1));

0 commit comments

Comments
 (0)